Skip to content

Commit

Permalink
refactor: refine code
Browse files Browse the repository at this point in the history
  • Loading branch information
avwo committed Dec 1, 2020
1 parent 532c54f commit 18c4f88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/https/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,9 @@ function resolveWebsocket(socket, wss) {
socket.write(res.getBuffer(curResHeaders));
if (res.statusCode == 101) {
socketMgr.handleUpgrade(socket, reqSocket);
} else {
reqSocket.resume();
}
reqSocket.resume();
resData.body = res.body;
resData.headers = curResHeaders;
resData.rawHeaderNames = res.rawHeaderNames;
Expand Down

0 comments on commit 18c4f88

Please sign in to comment.