use caddy.AppName instead of fixed string in 'Server' header (#1709)

This commit is contained in:
Marcel Ludwig 2017-06-24 20:17:06 +02:00 committed by Matt Holt
parent f68233a1ba
commit b0ab3d4281

View File

@ -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)