Skip to content

Commit

Permalink
fix: assert reading on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Nov 13, 2020
1 parent 1333ee4 commit b28f49e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ class Parser extends HTTPParser {
assert(!socket.destroyed)
assert(socket === client[kSocket])
assert(!socket.isPaused())
assert(socket._handle && socket._handle.reading)
assert(request.upgrade || request.method === 'CONNECT')

this.headers = null
Expand Down

0 comments on commit b28f49e

Please sign in to comment.