http2-proxy
Advanced tools
Comparing version 5.0.14 to 5.0.15
{ | ||
"name": "http2-proxy", | ||
"version": "5.0.14", | ||
"version": "5.0.15", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "dev": "nodemon --inspect=9308 src", |
@@ -169,2 +169,3 @@ # http2-proxy | ||
let finished = false | ||
let bytesWritten = 0 | ||
try { | ||
@@ -201,3 +202,3 @@ return await proxy.web(req, res, { | ||
// WORKAROUND: https://github.com/nodejs/node/pull/28004 | ||
res.bytesWritten = (res.bytesWritten || 0) + buf.length | ||
bytesWritten += buf.length | ||
if (!res.write(buf)) { | ||
@@ -233,3 +234,3 @@ proxyRes.pause() | ||
if (req.method === 'HEAD' || req.method === 'GET') { | ||
if (!res.bytesWritten) { | ||
if (!bytesWritten) { | ||
continue | ||
@@ -236,0 +237,0 @@ } else { |
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
309
22596