mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-01 00:23:48 +03:00
Server header in response
Version number purposefully excluded (for now?)
This commit is contained in:
parent
dba4dcb4a5
commit
c1916c0fb5
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue