Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3fda9e72e1 | |||
| a610eb250e | |||
| f583341fb8 |
@@ -1,6 +1,6 @@
|
||||
Library webhooks
|
||||
================
|
||||
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">
|
||||
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">
|
||||
[](https://travis-ci.org/go-playground/webhooks)
|
||||
[](https://coveralls.io/github/go-playground/webhooks?branch=v5)
|
||||
[](https://goreportcard.com/report/go-playground/webhooks)
|
||||
|
||||
@@ -93,7 +93,7 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
|
||||
}
|
||||
|
||||
uuid := r.Header.Get("X-Hook-UUID")
|
||||
if uuid == "" {
|
||||
if hook.uuid != "" && uuid == "" {
|
||||
return nil, ErrMissingHookUUIDHeader
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user