Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

http-parser allows extra spaces before the status code? #315

Open
vinniefalco opened this issue May 31, 2016 · 0 comments
Open

http-parser allows extra spaces before the status code? #315

vinniefalco opened this issue May 31, 2016 · 0 comments

Comments

@vinniefalco
Copy link
Contributor

The strict definition of status-line is:

    status-line = HTTP-version SP status-code SP reason-phrase CRLF

But the http-parser allows an unlimited number of spaces before status-code:

if (ch == ' ') {

Shouldn't this be allowed only if HTTP_PARSER_STRICT is defined?

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant