-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 server does not validate Host
header is present
#26554
Comments
re request smuggling the spec says: https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.3
Deno correctly overrides the Deno.serve((req) => {
console.log(req.headers)
})
Although I don't really like this and it should just close connection with error. |
Ah, fair enough. But Host is missing:
|
Opened hyperium/hyper#3777 |
You're right, Deno does override Content-Length properly now that I updated the test. The only failure is re. Host header now. ✅ Overflowing negative Content-Length header: Response Status Code 400, Expected ranges: [[400,499]] 31 out of 33 tests passed. |
Host
header is present
Version: Deno 2.0.0
I made a quick and simple standards test and found that Deno does not properly check for Content-Length vs. Transfer-Encoding. It must close the connection with error if both headers are present.
Also, the Host header is not checked.
The text was updated successfully, but these errors were encountered: