debug logs
This commit is contained in:
parent
113faf0212
commit
156c338ce7
@ -194,6 +194,7 @@ func (ph *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
func checkMethodPath(w http.ResponseWriter, r *http.Request, mr methodRegex) error {
|
func checkMethodPath(w http.ResponseWriter, r *http.Request, mr methodRegex) error {
|
||||||
req, ok := mr[r.Method]
|
req, ok := mr[r.Method]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
log.Debug().Msgf("%s is not a registerd HTTP method", r.Method)
|
||||||
http.Error(w, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed)
|
http.Error(w, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed)
|
||||||
return ErrHTTPMethodNotAllowed{httpMethod: r.Method}
|
return ErrHTTPMethodNotAllowed{httpMethod: r.Method}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user