Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/sinatra 4 1 x #327

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Fix/sinatra 4 1 x #327

merged 1 commit into from
Nov 29, 2024

Conversation

YOU54F
Copy link
Member

@YOU54F YOU54F commented Nov 29, 2024

Sinatra will reject requests if they are missing the appropriate HTTP_HOST header, post 4.1.x

See sinatra/sinatra#2053

This change will add the header into the provider in when replaying provider verifications, only in the case that Sinatra is defined to avoid affecting non Sinatra based apps

If a user specifies a HOST header in their pact file, it will be honoured, overwriting the value set here from localhost to the user specified value.

@YOU54F YOU54F merged commit 320c08c into master Nov 29, 2024
61 checks passed
@YOU54F YOU54F deleted the fix/sinatra_4_1_x branch November 29, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant