-
Notifications
You must be signed in to change notification settings - Fork 31.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: server check Host header in request, to meet RFC 7230 5.4 requirement #39322
Conversation
could you please add some test cases? Under |
Working on it. Also, I wonder how to increamental build under windows, every time I run test or build with |
Is there any additional work needed for this PR? |
@wwwzbwcom I'm sorry for this PR got staled.. It seems that it is conflict with current |
Hey, this would need a rebase to solve the git conflicts. |
Superseded by #45597 |
Relate issues: #3094 #39033
According to RFC 2730 5.4 https://datatracker.ietf.org/doc/html/rfc7230#section-5.4:
A server MUST respond with a 400 (Bad Request) status code to any HTTP/1.1 request message that lacks a Host header field and to any request message that contains more than one Host header field or a Host header field with an invalid field-value.