Skip to content

Commit

Permalink
fix: HTTP_HOST headers for sinatra 4.x
Browse files Browse the repository at this point in the history
this is a comment in order to trigger a release, as the
committers message was FIX: which was not picked up by
the release process :(
  • Loading branch information
YOU54F committed Jan 20, 2025
1 parent ac37e60 commit 173bfb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pact/provider/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def body

def headers
request_headers = {}
# https://github.com/pact-foundation/pact-ruby/pull/327
request_headers.merge!('HOST' => 'localhost') if defined?(Sinatra)
return request_headers if expected_request.headers.is_a?(Pact::NullExpectation)

Expand Down

0 comments on commit 173bfb7

Please sign in to comment.