@marcel91200 / caddy Mirror · read-only / commits / a19da07b
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

http: Add response headers to access logs

Matthew Holt committed Nov 11, 2019 at 14:02 UTC a19da07b72d84432341990bcedce511fe2f980da
1 file changed +1
modules/caddyhttp/server.go
+1
@@ -121,6 +121,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
121 zap.Duration("latency", latency),
122 zap.Int("size", wrec.Size()),
123 zap.Int("status", wrec.Status()),
124 + zap.Object("resp_headers", LoggableHTTPHeader(wrec.Header())),
125 )
126 }()
127 }