http2-proxy
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -41,2 +41,3 @@ const http2 = require('http2') | ||
const kOnProxyRes = Symbol('onProxyRes') | ||
const kFinished = Symbol('finished') | ||
@@ -60,2 +61,3 @@ function proxy (req, res, head, { | ||
res[kProxySocket] = null | ||
res[kFinished] = false | ||
@@ -163,6 +165,8 @@ assert(typeof callback === 'function' || callback == null) | ||
if (!res[kProxyCallback]) { | ||
if (res[kFinished]) { | ||
return | ||
} | ||
res[kFinished] = true | ||
if (err) { | ||
@@ -169,0 +173,0 @@ err.statusCode = statusCode || err.statusCode || 500 |
{ | ||
"name": "http2-proxy", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"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
16255
327