Browse Source

httpserver: Set default Server header

master
Matthew Holt 6 years ago
parent
commit
d5ae3a4966
  1. 2
      modules/caddyhttp/server.go

2
modules/caddyhttp/server.go

@ -33,6 +33,8 @@ type Server struct {
// ServeHTTP is the entry point for all HTTP requests. // ServeHTTP is the entry point for all HTTP requests.
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Server", "Caddy")
if s.tlsApp.HandleHTTPChallenge(w, r) { if s.tlsApp.HandleHTTPChallenge(w, r) {
return return
} }

Loading…
Cancel
Save