Skip to content

Send HTTP status code 431 if request header is too large - #126

Merged
clue merged 1 commit into
reactphp:masterfrom
clue-labs:error-overflow
Feb 21, 2017
Merged

Send HTTP status code 431 if request header is too large#126
clue merged 1 commit into
reactphp:masterfrom
clue-labs:error-overflow

Conversation

@clue

@clueclue commented Feb 19, 2017

Copy link
Copy Markdown
Member

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

@clueclue added this to the v0.6.0 milestone Feb 19, 2017
@clueclue changed the title Send HTTP status code 431 is request header is too largeSend HTTP status code 431 if request header is too largeFeb 19, 2017
@clue

clue commented Feb 19, 2017

Copy link
Copy Markdown
MemberAuthor

Rebased now that #125 is in :shipit:

@WyriHaximusWyriHaximus left a comment

Copy link
Copy Markdown
Member

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

clue commented Feb 21, 2017

Copy link
Copy Markdown
MemberAuthor

Rebased now that #127 is in :shipit:

@clue
clue merged commit 3616d16 into reactphp:masterFeb 21, 2017
@clue
clue deleted the error-overflow branch February 21, 2017 07:29
Sign up for freeto 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

@clue@jsor@WyriHaximus