mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
Log transfer_encoding on the request
This commit is contained in:
parent
4091e93eb0
commit
130c868e95
1 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,9 @@ func (r LoggableHTTPRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error {
|
||||||
Header: r.Header,
|
Header: r.Header,
|
||||||
ShouldLogCredentials: r.ShouldLogCredentials,
|
ShouldLogCredentials: r.ShouldLogCredentials,
|
||||||
})
|
})
|
||||||
|
if r.TransferEncoding != nil {
|
||||||
|
enc.AddArray("transfer_encoding", LoggableStringArray(r.TransferEncoding))
|
||||||
|
}
|
||||||
if r.TLS != nil {
|
if r.TLS != nil {
|
||||||
enc.AddObject("tls", LoggableTLSConnState(*r.TLS))
|
enc.AddObject("tls", LoggableTLSConnState(*r.TLS))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue