Skip to content

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
@WyriHaximus WyriHaximus requested review from WyriHaximus and jsor June 26, 2017 17:17
@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.

3 participants