Skip to content

Commit

Permalink
webhook: clone headers on request
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed May 4, 2022
1 parent f0d6a35 commit 472e70b
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 472e70b

Please sign in to comment.