Log transfer_encoding on the request

This commit is contained in:
Francis Lavoie 2024-10-15 12:00:40 -04:00
parent 4091e93eb0
commit 130c868e95
No known key found for this signature in database
GPG Key ID: 52BC55A211F19186

View File

@ -51,6 +51,9 @@ func (r LoggableHTTPRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error {
Header: r.Header,
ShouldLogCredentials: r.ShouldLogCredentials,
})
if r.TransferEncoding != nil {
enc.AddArray("transfer_encoding", LoggableStringArray(r.TransferEncoding))
}
if r.TLS != nil {
enc.AddObject("tls", LoggableTLSConnState(*r.TLS))
}