aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/marshalers.go3
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))
}