Merge branch 'sponsors-header'

This commit is contained in:
Matthew Holt 2017-09-12 10:53:21 -06:00
commit ad973f1d12
3 changed files with 127 additions and 0 deletions

View file

@ -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)