From b0ab3d42813217e62dd4261cb1b0f1389efdbcca Mon Sep 17 00:00:00 2001 From: Marcel Ludwig Date: Sat, 24 Jun 2017 20:17:06 +0200 Subject: [PATCH] use caddy.AppName instead of fixed string in 'Server' header (#1709) --- caddyhttp/httpserver/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddyhttp/httpserver/server.go b/caddyhttp/httpserver/server.go index 72706f750..b8a273098 100644 --- a/caddyhttp/httpserver/server.go +++ b/caddyhttp/httpserver/server.go @@ -331,7 +331,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { c := context.WithValue(r.Context(), OriginalURLCtxKey, urlCopy) r = r.WithContext(c) - w.Header().Set("Server", "Caddy") + w.Header().Set("Server", caddy.AppName) status, _ := s.serveHTTP(w, r)