diff --git a/main.go b/main.go index 8fd0aaf..b8a1417 100644 --- a/main.go +++ b/main.go @@ -352,6 +352,7 @@ func beforeProxy(next http.HandlerFunc) http.HandlerFunc { } if req.Method != "GET" && req.Method != "HEAD" { + w.WriteHeader(405) io.WriteString(w, "Only GET and HEAD requests are allowed.") return }