httpserver: Set default Server header

This commit is contained in:
Matthew Holt 2019-06-28 19:28:47 -06:00
parent 31ab737bf2
commit d5ae3a4966

View file

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