FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

http: server check Host header in request, to meet RFC 7230 5.4 requirement by wwwzbwcom · Pull Request #39322 · nodejs/node · GitHub

/ node Public

http: server check Host header in request, to meet RFC 7230 5.4 requirement - #39322

Closed
wwwzbwcom wants to merge 5 commits into
nodejs:mainfrom
wwwzbwcom:master
Closed

http: server check Host header in request, to meet RFC 7230 5.4 requirement#39322
wwwzbwcom wants to merge 5 commits into
nodejs:mainfrom
wwwzbwcom:master

Conversation

Copy link
Copy Markdown
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 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 commented Jul 9, 2021
edited
Loading

Copy link
Copy Markdown
Member

could you please add some test cases?

Under test/parellel/

Copy link
Copy Markdown
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.

Comment thread lib/_http_server.js Outdated

Copy link
Copy Markdown
Contributor Author

Is there any additional work needed for this PR?

Copy link
Copy Markdown
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 commented Sep 18, 2023

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Member

Superseded by #45597

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL