Skip to content

Commit

Permalink
webhook: clone headers on request
Browse files Browse the repository at this point in the history
Backports: #1557
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
(cherry picked from commit 472e70b)
  • Loading branch information
hdonnay committed Jun 2, 2022
1 parent 2a4694b commit edc65d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifier/webhook/deliverer.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (d *Deliverer) Deliver(ctx context.Context, nID uuid.UUID) error {

req := &http.Request{
URL: d.target,
Header: d.headers,
Header: d.headers.Clone(),
Body: codec.JSONReader(&wh),
Method: http.MethodPost,
}
Expand Down

0 comments on commit edc65d6

Please sign in to comment.