File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1019,6 +1019,8 @@ class UpgradeStream extends Duplex {
10191019 }
10201020
10211021 requestBodyCompleted ( upgradeHead ) {
1022+ this [ kIncomingMessage ] = null ;
1023+
10221024 // When the request body is completed, we begin streaming all the
10231025 // post-body data for the upgraded protocol:
10241026 if ( upgradeHead ?. length > 0 ) {
@@ -1039,7 +1041,7 @@ class UpgradeStream extends Duplex {
10391041 // important that this happens, even if there are no listeners, or it
10401042 // would be impossible to read this without explicitly reading all the
10411043 // request body first, which is backward incompatible & awkward.
1042- this [ kIncomingMessage ] . resume ( ) ;
1044+ this [ kIncomingMessage ] ? .resume ( ) ;
10431045
10441046 this [ kSocket ] . resume ( ) ;
10451047 }
You can’t perform that action at this time.
0 commit comments