mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-21 15:47:24 +08:00
Server header in response
Version number purposefully excluded (for now?)
This commit is contained in:
parent
dba4dcb4a5
commit
c1916c0fb5
@ -162,6 +162,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
if vh, ok := s.vhosts[host]; ok {
|
||||
w.Header().Set("Server", "Caddy")
|
||||
|
||||
status, _ := vh.stack.ServeHTTP(w, r)
|
||||
|
||||
// Fallback error response in case error handling wasn't chained in
|
||||
|
Loading…
x
Reference in New Issue
Block a user