-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http module accepts all http versions (e.g. HTTP/9.9) and treats/responds to them as http1 #43115
Closed
Labels
http
Issues or PRs related to the http subsystem.
Comments
cc @mcollina @nodejs/http |
I think this would need to be lodged in the llhttp repository. |
4 tasks
4 tasks
@mscdex I agree, this is on llhttp. Patch will come soon and then later we can update this. |
sidwebworks
pushed a commit
to sidwebworks/node
that referenced
this issue
Aug 26, 2022
PR-URL: nodejs#44344 Fixes: nodejs#43115 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Fyko
pushed a commit
to Fyko/node
that referenced
this issue
Sep 15, 2022
PR-URL: nodejs#44344 Fixes: nodejs#43115 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
14.9.2
Platform
all
Subsystem
http
What steps will reproduce the bug?
http accepts any http version and treats it as http1, and passes it along (>= 0 and <= 9.9 in my tests). this may be a feature, but if so could use some documentation since it's a little unexpected maybe.
copying comment from here:
with:
and the response is
How often does it reproduce? Is there a required condition?
no special requirements/conditions
What is the expected behavior?
request being rejected. http 505 maybe? requesting with
GET / NOTHTTP/1.1
gives 400 bad request.What do you see instead?
the node server treats all requests regardless of version as http1
Additional information
No response
The text was updated successfully, but these errors were encountered: