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