Server header in response

Version number purposefully excluded (for now?)
This commit is contained in:
Matthew Holt 2015-04-26 23:09:26 -06:00
parent dba4dcb4a5
commit c1916c0fb5

View file

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