Skip to content

http: skip body and next message of CONNECT res

Rodrigo Muino Tomonari requested to merge github/fork/indutny/fix/gh-6198 into master
Checklist
  • tests and code linting passes
  • a test and/or benchmark is included
  • the commit message follows commit guidelines
Affected core subsystem(s)

http

Description of change
http: skip body and next message of CONNECT res

When handling a response to `CONNECT` request - skip message body
and do not attempt to parse the next message. `CONNECT` requests are
used in similar sense to HTTP Upgrade.

Fix: https://github.com/nodejs/node/pull/6198

cc @nodejs/http @mscdex @bnoordhuis

Merge request reports

Loading