Skip to content
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

Closed
wants to merge 5 commits into from

Conversation

wwwzbwcom
Copy link
Contributor

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.

@github-actions github-actions bot added http Issues or PRs related to the http subsystem. needs-ci PRs that need a full CI run. labels Jul 9, 2021
@himself65
Copy link
Member

himself65 commented Jul 9, 2021

could you please add some test cases?

Under test/parellel/

@wwwzbwcom
Copy link
Contributor Author

could you please add some test cases?

Under test/parellel/

Working on it.

Also, I wonder how to increamental build under windows, every time I run test or build with ./vcbuild.bat, it compile whole program.

@wwwzbwcom
Copy link
Contributor Author

Is there any additional work needed for this PR?

@Ayase-252
Copy link
Member

@wwwzbwcom I'm sorry for this PR got staled..

It seems that it is conflict with current master branch. Would you want to resolve it? After that, I would ping http team for further reviewing.

@aduh95
Copy link
Contributor

aduh95 commented Sep 18, 2023

Hey, this would need a rebase to solve the git conflicts.

@marco-ippolito
Copy link
Member

Superseded by #45597

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
http Issues or PRs related to the http subsystem. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants