From ade249eefcb305fd7bce95f5649f12268e201dad Mon Sep 17 00:00:00 2001 From: Adrien PONSIN Date: Tue, 15 Apr 2025 20:10:38 +0200 Subject: [PATCH] wait, what? --- command/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/serve.go b/command/serve.go index 9ad6603..8b06e52 100644 --- a/command/serve.go +++ b/command/serve.go @@ -194,7 +194,7 @@ func (ph *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { func checkMethodPath(w http.ResponseWriter, r *http.Request, mr methodRegex) error { req, ok := mr[r.Method] if !ok { - log.Debug().Msgf("%s is not a registerd HTTP method", r.Method) + fmt.Printf("%s is not a registered HTTP method\n", r.Method) http.Error(w, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed) return ErrHTTPMethodNotAllowed{httpMethod: r.Method} }