mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-26 08:39: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 {
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user