Skip to content

Commit

Permalink
fix: ensure configured webhook headers are used when making request
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jun 25, 2018
1 parent 692d04e commit 50c876f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/pact_broker/webhooks/webhook_request_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(context)
attributes = {
method: http_method,
url: build_url(context[:pact], context[:verification]),
headers: headers,
username: username,
password: password,
uuid: uuid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module Webhooks
username: "foo",
password: "bar",
uuid: "1234",
body: body
body: body,
headers: {'Foo' => 'bar'}
}
end

Expand All @@ -21,7 +22,8 @@ module Webhooks
username: "foo",
password: "bar",
uuid: "1234",
body: built_body
body: built_body,
headers: {'Foo' => 'bar'}
}
end

Expand Down

0 comments on commit 50c876f

Please sign in to comment.