Merge branch 'caronte' of github.com:nodejitsu/node-http-proxy into caronte

This commit is contained in:
cronopio 2013-10-28 13:19:35 -05:00
commit f720e36b42

View File

@ -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();
}