mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Merge branch 'caronte' of github.com:nodejitsu/node-http-proxy into caronte
This commit is contained in:
commit
f720e36b42
@ -106,6 +106,7 @@ web_o = Object.keys(web_o).map(function(pass) {
|
||||
|
||||
// Error Handler
|
||||
proxyReq.on('error', function(err){
|
||||
if(options.buffer) { options.buffer.destroy(); }
|
||||
if (clb) {
|
||||
clb(err);
|
||||
} else {
|
||||
@ -123,6 +124,10 @@ web_o = Object.keys(web_o).map(function(pass) {
|
||||
proxyRes.pipe(res);
|
||||
});
|
||||
|
||||
if(options.buffer) {
|
||||
options.buffer.resume();
|
||||
}
|
||||
|
||||
//proxyReq.end();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user