diff options
author | Francis Lavoie <[email protected]> | 2024-10-15 12:00:40 -0400 |
---|---|---|
committer | Francis Lavoie <[email protected]> | 2024-10-15 12:00:40 -0400 |
commit | 130c868e95dfd1a8b1d39fd217bc6378f6b72ec0 (patch) | |
tree | 9c6fe20f138f0d764ca80cfdfb7d127eb34ec4fa /modules/caddyhttp | |
parent | 4091e93eb0642507766997876a2a3c0b1d8cf8d9 (diff) | |
download | caddy-130c868e95dfd1a8b1d39fd217bc6378f6b72ec0.tar.gz caddy-130c868e95dfd1a8b1d39fd217bc6378f6b72ec0.zip |
Log transfer_encoding on the request
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r-- | modules/caddyhttp/marshalers.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/caddyhttp/marshalers.go b/modules/caddyhttp/marshalers.go index c985bb926..9bce377f4 100644 --- a/modules/caddyhttp/marshalers.go +++ b/modules/caddyhttp/marshalers.go @@ -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)) } |