nodejitsu/node-http-proxy — Issue #138: Last Request Returns Empty Response
Author: sirganya
Created: 2011-10-24 15:22:29+00:00
State: open

When I hit this proxy with multiple requests it always fails to return a reponse for the last one, the previous ones return the correct data but the final one's always empty. If I increase or decrease the number of requests it's always the last one that fails. It was working with the old API. Could it be a buffer issue caused by express?
Thanks.

```javascript

var http = require('http'),
httpProxy = require('http-proxy');

var proxy = new httpProxy.RoutingProxy();

var express = require("express"),
app = express.createServer();

app.all('/node*', function(req, res, next){

req.url = req.url.replace("/node", "");
proxy.proxyRequest(req, res, {
host: 'localhost',
port: 8002,
});
});

app.listen(80);

```