diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go index 57d1a3b4..e119c2d3 100644 --- a/modules/caddyhttp/server.go +++ b/modules/caddyhttp/server.go @@ -121,6 +121,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { zap.Duration("latency", latency), zap.Int("size", wrec.Size()), zap.Int("status", wrec.Status()), + zap.Object("resp_headers", LoggableHTTPHeader(wrec.Header())), ) }() }