summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/http2/core.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js
index c764cd0297..2a4ef0421f 100644
--- a/lib/internal/http2/core.js
+++ b/lib/internal/http2/core.js
@@ -2073,19 +2073,12 @@ function afterOpen(session, options, headers, streamOptions, err, fd) {
headers, streamOptions));
}
-function streamOnError(err) {
- // we swallow the error for parity with HTTP1
- // all the errors that ends here are not critical for the project
-}
-
-
class ServerHttp2Stream extends Http2Stream {
constructor(session, handle, id, options, headers) {
super(session, options);
this[kInit](id, handle);
this[kProtocol] = headers[HTTP2_HEADER_SCHEME];
this[kAuthority] = headers[HTTP2_HEADER_AUTHORITY];
- this.on('error', streamOnError);
}
// true if the remote peer accepts push streams