mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-26 02:09:47 +08:00
use caddy.AppName instead of fixed string in 'Server' header (#1709)
This commit is contained in:
parent
f68233a1ba
commit
b0ab3d4281
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user