mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-26 17:19:17 +08:00
Fix method not allowed log message
This commit is contained in:
+1
-1
@@ -293,7 +293,7 @@ func hookHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
if !allowedMethod {
|
if !allowedMethod {
|
||||||
w.WriteHeader(http.StatusMethodNotAllowed)
|
w.WriteHeader(http.StatusMethodNotAllowed)
|
||||||
log.Printf("[%s] HTTP %s method not implemented for hook %q", rid, r.Method, id)
|
log.Printf("[%s] HTTP %s method not allowed for hook %q", rid, r.Method, id)
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user