mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 21:53:48 +03:00
httpserver: Set default Server header
This commit is contained in:
parent
31ab737bf2
commit
d5ae3a4966
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue