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,