http2-proxy
Advanced tools
Comparing version 0.1.13 to 0.1.14
@@ -133,2 +133,4 @@ const createError = require('http-errors') | ||
const incoming = req.stream || req | ||
const abort = () => { | ||
@@ -138,8 +140,10 @@ if (!proxyReq.aborted) { | ||
} | ||
(req.stream || req).removeListener('error', abort) | ||
} | ||
(req.stream || req).on('error', abort) | ||
incoming.on('error', abort) | ||
incoming.on('aborted', abort) | ||
const callback = err => { | ||
incoming.removeListener('error', abort) | ||
incoming.removeListener('aborted', abort) | ||
abort() | ||
@@ -146,0 +150,0 @@ onError(err) |
{ | ||
"name": "http2-proxy", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"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
12787
247