Give the user the choice to parse SystemHooks

This commit is contained in:
Martin Treml
2019-03-11 08:13:22 +01:00
parent 66059be93b
commit bad16bfcd0
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -89,9 +89,6 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
return nil, ErrInvalidHTTPMethod
}
// Add SystemHookEvents to event slice to allow parsing
events = append(events, SystemHookEvents)
// If we have a Secret set, we should check the MAC
if len(hook.secret) > 0 {
signature := r.Header.Get("X-Gitlab-Token")