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 merging default headers if overwritten with custom case headers #101

Merged
merged 1 commit into from Jun 26, 2017

Conversation

clue
Copy link
Member

@clue clue commented Jun 26, 2017

The Client always tried to add a Host header, unless an explicit Host header value is already given. This change makes sure that explicit headers are matched case insensitive, so that a host header will also be taken into account and will be preserved as-is, without adding a duplicate Host header as well.

Refs #100

@clue clue added the bug label Jun 26, 2017
@clue clue added this to the v0.5.2 milestone Jun 26, 2017
@clue
Copy link
Member Author

clue commented Jun 26, 2017

Rebased now that #100 is in :shipit:

@WyriHaximus
Copy link
Member

FYI Travis builds are acting up, I'm monitoring them.

@WyriHaximus WyriHaximus merged commit b48b088 into reactphp:master Jun 26, 2017
@clue clue deleted the headers-case branch June 27, 2017 04:51
@clue
Copy link
Member Author

clue commented Jun 27, 2017

For the reference: This now works very much similar to the old version of react/http, prior to applying PSR-7: reactphp/http#107

Accordingly, this code will be simplified once work on #41 takes off :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants