mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] let user make the decision on what to do with the buffer
This commit is contained in:
parent
97ceeb37d0
commit
4f07dc220d
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user