http2-proxy
Advanced tools
Comparing version 1.0.1 to 1.0.2
36
index.js
@@ -165,17 +165,2 @@ const http2 = require('http2') | ||
if (res[kProxyReq]) { | ||
res[kProxyReq].abort() | ||
res[kProxyReq] = null | ||
} | ||
if (res[kProxySocket]) { | ||
res[kProxySocket].end() | ||
res[kProxySocket] = null | ||
} | ||
if (res[kProxyRes]) { | ||
res[kProxyRes].destroy() | ||
res[kProxyRes] = null | ||
} | ||
if (err) { | ||
@@ -201,4 +186,21 @@ err.statusCode = statusCode || err.statusCode || 500 | ||
res[kProxyCallback].call(null, err, res[kReq], res) | ||
res[kProxyCallback] = null | ||
if (res[kProxyCallback]) { | ||
res[kProxyCallback].call(res[kProxyReq], err, res[kReq], res) | ||
res[kProxyCallback] = null | ||
} | ||
if (res[kProxyReq]) { | ||
res[kProxyReq].abort() | ||
res[kProxyReq] = null | ||
} | ||
if (res[kProxySocket]) { | ||
res[kProxySocket].end() | ||
res[kProxySocket] = null | ||
} | ||
if (res[kProxyRes]) { | ||
res[kProxyRes].destroy() | ||
res[kProxyRes] = null | ||
} | ||
} | ||
@@ -205,0 +207,0 @@ |
{ | ||
"name": "http2-proxy", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"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
16174
324