Skip to content
Permalink
Browse files

[feature] add buffer support

  • Loading branch information...
yawnt committed Oct 26, 2013
1 parent a1b25a1 commit e3f8d5fdbe1ebc4f04188d95bbef768d09718d2c
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/http-proxy/passes/web-incoming.js
@@ -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();
}

0 comments on commit e3f8d5f

Please sign in to comment.
You can’t perform that action at this time.