From bbe1500a358dfabf4bb6e712ac6da5715a92c9f5 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Tue, 17 Sep 2019 04:43:11 -0700 Subject: [PATCH] plugin/webhook: fix dropped error --- plugin/webhook/webhook.go | 3 +++ 1 file changed, 3 insertions(+) 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()