Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
httpserver: Set default Server header
Matthew Holt committed
Jun 28, 2019 at 19:28 UTC
d5ae3a4966288475025360f43917e9fae94148d7
1 file changed
+2
modules/caddyhttp/server.go
+2
@@ -33,6 +33,8 @@ type Server struct {
33
34
// ServeHTTP is the entry point for all HTTP requests.
35
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
36
+ w.Header().Set("Server", "Caddy")
37
+
38
if s.tlsApp.HandleHTTPChallenge(w, r) {
39
return
40
}