http2-proxy
Advanced tools
Comparing version 0.1.14 to 0.1.15
13
index.js
@@ -93,4 +93,2 @@ const createError = require('http-errors') | ||
(req.stream || req).on('error', onError) | ||
if (resOrSocket instanceof net.Socket) { | ||
@@ -134,4 +132,2 @@ if (headOrNil && headOrNil.length) { | ||
const incoming = req.stream || req | ||
const abort = () => { | ||
@@ -143,7 +139,7 @@ if (!proxyReq.aborted) { | ||
incoming.on('error', abort) | ||
incoming.on('aborted', abort) | ||
// NOTE http2.Http2ServerRequest doesn't forward stream errors. | ||
const incoming = req.stream || req | ||
const callback = err => { | ||
incoming.removeListener('error', abort) | ||
incoming.removeListener('error', callback) | ||
incoming.removeListener('aborted', abort) | ||
@@ -154,2 +150,5 @@ abort() | ||
incoming.on('error', callback) | ||
incoming.on('aborted', abort) | ||
req | ||
@@ -156,0 +155,0 @@ .pipe(proxyReq) |
{ | ||
"name": "http2-proxy", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "dev": "nodemon --inspect=9308 --expose-http2 src", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12813