http-parser
http-parser copied to clipboard
http-parser allows extra spaces before the status code?
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?