From d5ae3a4966288475025360f43917e9fae94148d7 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 28 Jun 2019 19:28:47 -0600 Subject: [PATCH] httpserver: Set default Server header --- modules/caddyhttp/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go index 9f08d1ff..0ec451c7 100644 --- a/modules/caddyhttp/server.go +++ b/modules/caddyhttp/server.go @@ -33,6 +33,8 @@ type Server struct { // ServeHTTP is the entry point for all HTTP requests. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Server", "Caddy") + if s.tlsApp.HandleHTTPChallenge(w, r) { return }