From: Dan Fuhry Date: Mon, 30 Dec 2024 19:28:00 +0000 (-0500) Subject: fix panic X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=cabf5e4903e169f8b8d0ca77ebe25821b863cd1f;p=runtime.git fix panic --- diff --git a/utils/log/http.go b/utils/log/http.go index c212681..de9330a 100644 --- a/utils/log/http.go +++ b/utils/log/http.go @@ -41,6 +41,7 @@ func NewLoggingMiddleware(h http.Handler) *LoggingMiddleware { func NewLoggingMiddlewareWithLogger(h http.Handler, logger Logger) *LoggingMiddleware { lm := &LoggingMiddleware{ Logger: logger, + h: h, extraRequestHeaders: []string{"user-agent"}, extraResponseHeaders: []string{"content-type"},