mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-17 04:31:38 +00:00
Add Server: git-pages header to all responses.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user