handler.go | 2 +- diff --git a/handler.go b/handler.go index 56e24cbcb708a64d642269f9903e6ad999c811139d4d668466df8c491caf04e7..7abf85c91f12bcd2cdd5e07aeac01b626e8df84dc12b488571b9edee126aa6b5 100644 --- a/handler.go +++ b/handler.go @@ -184,7 +184,7 @@ StatsAdd <- Stat{Host: host, U: r.URL, Code: wc.Status, Size: uint64(wc.Size)} return } - if !(r.Method == "" || r.Method == http.MethodGet || r.Method == http.MethodHead) { + 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,