Add Server: git-pages header to all responses.

This commit is contained in:
Catherine
2025-09-16 14:12:47 +00:00
parent bffa79dfba
commit cc42c43de2

View File

@@ -268,6 +268,7 @@ func postPage(w http.ResponseWriter, r *http.Request) error {
func ServePages(w http.ResponseWriter, r *http.Request) {
log.Println("pages:", r.Method, r.Host, r.URL)
w.Header().Add("Server", "git-pages")
err := error(nil)
switch r.Method {
case http.MethodGet, http.MethodHead: