http-proxy
Advanced tools
Comparing version 0.6.5 to 0.6.6
@@ -347,2 +347,9 @@ /* | ||
}, | ||
destroy: function () { | ||
this.end(); | ||
this.resume = function () { | ||
console.error("Cannot resume buffer after destroying it."); | ||
}; | ||
onData = onEnd = events = obj = null; | ||
}, | ||
resume: function () { | ||
@@ -590,4 +597,8 @@ this.end(); | ||
// If we have been passed buffered data, resume it. | ||
if (options.buffer && !errState) { | ||
options.buffer.resume(); | ||
if (options.buffer) { | ||
if (!errState) { | ||
options.buffer.resume(); | ||
} else { | ||
options.buffer.destroy(); | ||
} | ||
} | ||
@@ -738,2 +749,3 @@ }; | ||
catch (e) { | ||
detach(); | ||
reverseProxy.incoming.socket.end(); | ||
@@ -755,2 +767,3 @@ proxySocket.end(); | ||
catch (e) { | ||
detach(); | ||
proxySocket.end(); | ||
@@ -840,3 +853,2 @@ socket.end(); | ||
} | ||
socket.end(); | ||
@@ -940,8 +952,10 @@ } | ||
// | ||
// If we have been passed buffered data, resume it. | ||
// | ||
if (options.buffer && !errState) { | ||
options.buffer.resume(); | ||
if (options.buffer) { | ||
if (!errState) { | ||
options.buffer.resume(); | ||
} else { | ||
options.buffer.destroy(); | ||
} | ||
} | ||
}; |
{ | ||
"name": "http-proxy", | ||
"description": "A full-featured http reverse proxy for node.js", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"author": "Charlie Robbins <charlie.robbins@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
298617
3309