]> Sergey Matveev's repositories - godlighty.git/commitdiff
Seems there is not problems with HEAD
authorSergey Matveev <stargrave@stargrave.org>
Sun, 24 Oct 2021 17:38:42 +0000 (20:38 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 24 Oct 2021 17:38:42 +0000 (20:38 +0300)
handler.go

index 6fa1d35bbeb0e1a6290900f55ecaaf9a8b91f998..52d9a1082619c6a191bb362757e2c044f874d4a8 100644 (file)
@@ -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,