We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc9712d commit 84603ecCopy full SHA for 84603ec
lib/internal/http2/core.js
@@ -2155,12 +2155,16 @@ class Http2Stream extends Duplex {
2155
// By using setImmediate we allow pushStreams to make it through
2156
// before the stream is officially closed. This prevents a bug
2157
// in most browsers where those pushStreams would be rejected.
2158
- setImmediate(this.close.bind(this));
+ setImmediate(callStreamClose, this);
2159
}
2160
2161
2162
2163
2164
+function callStreamClose(stream) {
2165
+ stream.close();
2166
+}
2167
+
2168
function processHeaders(oldHeaders) {
2169
assertIsObject(oldHeaders, 'headers');
2170
const headers = Object.create(null);
0 commit comments