diff options
-rw-r--r-- | internal/server/server.go | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/internal/server/server.go b/internal/server/server.go index 269ed9e..5c92139 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -204,15 +204,11 @@ func New(runtimeConfig *Config, log *log.Logger) (*Server, error) { loggingMux.Handle("/", mux) } - if runtimeConfig.Development { - top.Handle("/", - serverHeaderHandler( - wrapHandlerWithLogging(loggingMux, log), - ), - ) - } else { - top.Handle("/", serverHeaderHandler(loggingMux)) - } + top.Handle("/", + serverHeaderHandler( + wrapHandlerWithLogging(loggingMux, log), + ), + ) top.HandleFunc("/health", func(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(http.StatusNoContent) |