From: Sergey Matveev Date: Sun, 24 Oct 2021 17:38:42 +0000 (+0300) Subject: Seems there is not problems with HEAD X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2e548aa9260fbe099aa7b86e26a696383d939b3c;p=godlighty.git Seems there is not problems with HEAD --- diff --git a/handler.go b/handler.go index 6fa1d35..52d9a10 100644 --- a/handler.go +++ b/handler.go @@ -156,7 +156,7 @@ func (h Handler) Handle( return } - if !(r.Method == "" || r.Method == http.MethodGet) { + if !(r.Method == "" || r.Method == http.MethodGet || r.Method == http.MethodHead) { fmt.Printf("%s %s \"%s %+q %s\" %d %s\"%s\"\n", r.RemoteAddr, host, r.Method, PathWithQuery(r.URL), r.Proto, http.StatusMethodNotAllowed,