| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Returning `2` from on_headers_complete will tell parser that it should not expect neither a body nor any futher responses on this connection. This is useful for handling responses to a CONNECT request which may not contain `Upgrade` or `Connection: upgrade` headers. See: nodejs/node#6198
|
LGTM if tests pass. Do we have the ability to do this in CI yet? |
Sorry, something went wrong.
|
@mscdex thank you, this is semver minor, right? |
Sorry, something went wrong.
|
Assuming the original intention was for CONNECT to be handled in this way, then I would say yes. |
Sorry, something went wrong.
|
Yeah, also existing code will work just as it was before. |
Sorry, something went wrong.
|
A question for @nodejs/lts team, do you think this could be backported to v4.x.x? It seems that responses to CONNECT requests are currently a bit broken in LTS |
Sorry, something went wrong.
|
The problem is that this is a semver-minor change in http-parser. |
Sorry, something went wrong.
|
Alright, enough time to collect feedback. Landing. |
Sorry, something went wrong.
Returning `2` from on_headers_complete will tell parser that it should not expect neither a body nor any futher responses on this connection. This is useful for handling responses to a CONNECT request which may not contain `Upgrade` or `Connection: upgrade` headers. See: nodejs/node#6198 PR-URL: #299 Reviewed-By: Brian White <mscdex@mscdex.net>
|
Landed in 04d28a7, thank you everyone! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Returning 2 from on_headers_complete will tell parser that it
should not expect neither a body nor any futher responses on
this connection. This is useful for handling responses to a
CONNECT request which may not contain Upgrade or
Connection: upgrade headers.
See: nodejs/node#6198
cc @bnoordhuis @jasnell @mscdex
See also: nodejs/node#6198 (comment)