diff options
Diffstat (limited to 'remove-sponsors-header.patch')
-rw-r--r-- | remove-sponsors-header.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/remove-sponsors-header.patch b/remove-sponsors-header.patch deleted file mode 100644 index 5ff10742ccb6..000000000000 --- a/remove-sponsors-header.patch +++ /dev/null @@ -1,29 +0,0 @@ -diff --git a/caddyhttp/header/header.go b/caddyhttp/header/header.go -index 6a60eac..3967dd3 100644 ---- a/caddyhttp/header/header.go -+++ b/caddyhttp/header/header.go -@@ -27,10 +27,6 @@ func (h Headers) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) - for _, rule := range h.Rules { - if httpserver.Path(r.URL.Path).Matches(rule.Path) { - for name := range rule.Headers { -- if name == "Caddy-Sponsors" || name == "-Caddy-Sponsors" { -- // see EULA -- continue -- } - - // One can either delete a header, add multiple values to a header, or simply - // set a header. -diff --git a/caddyhttp/httpserver/server.go b/caddyhttp/httpserver/server.go -index 6096a13..6a51aa9 100644 ---- a/caddyhttp/httpserver/server.go -+++ b/caddyhttp/httpserver/server.go -@@ -343,8 +343,6 @@ 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) - --- |