Commit 03fba31b authored by Łukasz Nowak's avatar Łukasz Nowak

Disable Server header

User can configure Server header to Caddy value anytime, and it's impossible
to fully drop it with configuration (empty Server header is transmitted)
parent 2c11cedc
......@@ -386,8 +386,6 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
c = context.WithValue(r.Context(), ReplacerCtxKey, replacer)
r = r.WithContext(c)
w.Header().Set("Server", caddy.AppName)
status, _ := s.serveHTTP(w, r)
// Fallback error response in case error handling wasn't chained in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment