diff --git a/plugin/webhook/webhook.go b/plugin/webhook/webhook.go index b5f2fc51..60eff999 100644 --- a/plugin/webhook/webhook.go +++ b/plugin/webhook/webhook.go @@ -95,6 +95,9 @@ func (s *sender) send(endpoint, secret, event string, data []byte) error { req.Header.Add("Digest", "SHA-256="+digest(data)) req.Header.Add("Date", time.Now().UTC().Format(http.TimeFormat)) err = signer.SignRequest("hmac-key", s.Secret, req) + if err != nil { + return err + } res, err := s.client().Do(req) if res != nil { res.Body.Close()