node
node copied to clipboard
http: server check Host header in request, to meet RFC 7230 5.4 requirement
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.
could you please add some test cases?
Under test/parellel/
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.
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 master
branch. Would you want to resolve it? After that, I would ping http team for further reviewing.
Hey, this would need a rebase to solve the git conflicts.