summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-06-28 19:28:47 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-06-28 19:28:47 -0600
commitd5ae3a4966288475025360f43917e9fae94148d7 (patch)
tree966135619266002b3dd8a4322ea7bd65662dd64b /modules/caddyhttp
parent31ab737bf26deb9315ffedf99a8bb7d43f620700 (diff)
httpserver: Set default Server header
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/server.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go
index 9f08d1f..0ec451c 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
}