http-parser icon indicating copy to clipboard operation
http-parser copied to clipboard

http-parser allows extra spaces before the status code?

Open vinniefalco opened this issue 9 years ago • 0 comments

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: https://github.com/nodejs/http-parser/blob/f2c26ee500ab3921010fa7ec66243365611e77dd/http_parser.c#L873

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

vinniefalco avatar May 31 '16 18:05 vinniefalco