From 4f07dc220d700ac90bd8405f7cb0724bdae4b430 Mon Sep 17 00:00:00 2001 From: Jarrett Cruger Date: Thu, 10 Apr 2014 20:02:46 -0400 Subject: [PATCH] [fix] let user make the decision on what to do with the buffer --- lib/http-proxy/passes/web-incoming.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/http-proxy/passes/web-incoming.js b/lib/http-proxy/passes/web-incoming.js index 29ae306..26f12c6 100644 --- a/lib/http-proxy/passes/web-incoming.js +++ b/lib/http-proxy/passes/web-incoming.js @@ -113,7 +113,6 @@ 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, req, res); } else {