Skip to content

Conversation

@clue
Copy link
Member

@clue clue commented Feb 19, 2017

Currently, sending an invalid request results in the same error message as sending a valid request that is too large: HTTP/1.1 400 Bad Request.

This simple PR change it so that the latter will now use the more descriptive error message: HTTP/1.1 431 Request Header Fields Too Large

Builds on top of #124

@clue clue added this to the v0.6.0 milestone Feb 19, 2017
@clue clue changed the title Send HTTP status code 431 is request header is too large Send HTTP status code 431 if request header is too large Feb 19, 2017
@clue
Copy link
Member Author

clue commented Feb 19, 2017

Rebased now that #125 is in :shipit:

Copy link
Member

@WyriHaximus WyriHaximus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but could you fix merge conflicts?

@clue
Copy link
Member Author

clue commented Feb 21, 2017

Rebased now that #127 is in :shipit:

@clue clue merged commit 3616d16 into reactphp:master Feb 21, 2017
@clue clue deleted the error-overflow branch February 21, 2017 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants