You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 6, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 6, 2022. It is now read-only.
Parser error when parsing request line with a non standard HTTP method #92
But Node.JS's HTTP server does let not my code serve non-standard HTTP method. Instead, when receiving a request line using a non-standard method, the server close the connection after a parser error. So it seems that http_parser does not support non-standard methods.
According to the HTTP 1.1 specification (rfc2616, section 5.1), the method of a request line can be any valid token. So it seems natural to expect an HTTP parser to accept any method in the request line. It is up to the parser user to properly handle unknown method.
Closing. There's nothing to do on this at this point in time. More generalized HTTP method handling will be discussed as part of the HTTP WG (http://github.com/nodejs/http)
Activity
bnoordhuis commentedon Feb 17, 2012
See #93.
emberian commentedon Dec 14, 2012
I'm going to try and take a whack at this tomorrow or tonight, in ways that conform to a and b in nodejs/node-v0.x-archive#3192
jasnell commentedon Oct 26, 2015
Closing. There's nothing to do on this at this point in time. More generalized HTTP method handling will be discussed as part of the HTTP WG (http://github.com/nodejs/http)