Respond to HEAD requests.

This commit is contained in:
Catherine
2025-09-15 11:28:33 +00:00
parent 9346beb01b
commit 9588e6743c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ func ServePages(w http.ResponseWriter, r *http.Request) {
log.Println("pages:", r.Method, r.Host, r.URL)
err := error(nil)
switch r.Method {
case http.MethodGet:
case http.MethodGet, http.MethodHead:
err = getPage(w, r)
case http.MethodPut:
err = putPage(w, r)