FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Server header in response · yourchanges/caddy@c1916c0 · GitHub

Commit c1916c0

Browse files
committed
Server header in response
Version number purposefully excluded (for now?)
1 parent dba4dcb commit c1916c0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎server/server.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
162162
}
163163

164164
if vh, ok := s.vhosts[host]; ok {
165+
w.Header().Set("Server", "Caddy")
166+
165167
status, _ := vh.stack.ServeHTTP(w, r)
166168

167169
// Fallback error response in case error handling wasn't chained in

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL