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

This commit is contained in:
Marcel Ludwig authored and Matt Holt committed 2017-06-24 11:17:06 -07:00
1 parent f68233a1ba
commit b0ab3d4281
1 file changed
+1 -1
+1 -1
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)