From c1916c0fb5c33c97fcfad119bdfd808f0dd5b8a2 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sun, 26 Apr 2015 23:09:26 -0600 Subject: [PATCH] Server header in response Version number purposefully excluded (for now?) --- server/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/server.go b/server/server.go index 1f9d40e3..028278b0 100644 --- a/server/server.go +++ b/server/server.go @@ -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