mirror of
https://github.com/caddyserver/caddy.git
synced 2026-01-17 09:40:33 +00:00
Implement Caddy-Sponsors HTTP response header
(See EULA.) Personally-licensed official Caddy builds cannot remove this header by configuration. The commercially-licensed builds of Caddy don't have this header.
This commit is contained in:
@@ -343,6 +343,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
r = r.WithContext(c)
|
||||
|
||||
w.Header().Set("Server", caddy.AppName)
|
||||
sponsors := "Minio, Uptime Robot, and Sourcegraph"
|
||||
w.Header().Set("Caddy-Sponsors", "This free web server is made possible by its sponsors: "+sponsors)
|
||||
|
||||
status, _ := s.serveHTTP(w, r)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user