wait, what?
This commit is contained in:
parent
156c338ce7
commit
ade249eefc
@ -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}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user