mirror of
https://github.com/astaxie/beego.git
synced 2024-11-05 06:40:54 +00:00
Merge pull request #4083 from IamCathal/content-length
Add Content-length field for logging
This commit is contained in:
commit
16b66509f6
@ -1046,7 +1046,7 @@ func LogAccess(ctx *beecontext.Context, startTime *time.Time, statusCode int) {
|
||||
HTTPReferrer: r.Header.Get("Referer"),
|
||||
HTTPUserAgent: r.Header.Get("User-Agent"),
|
||||
RemoteUser: r.Header.Get("Remote-User"),
|
||||
BodyBytesSent: 0, // @todo this one is missing!
|
||||
BodyBytesSent: r.ContentLength,
|
||||
}
|
||||
logs.AccessLog(record, BConfig.Log.AccessLogsFormat)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user