only validate UUID header when expecting one
This commit is contained in:
parent
206a8b42fd
commit
f583341fb8
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue