hanging POST requests
Created by: joeyAghion
Hi, I'm using express and trying to proxy certain requests to a different server, as follows (simplified):
var httpProxy = require('http-proxy');
var apiProxy = new httpProxy.RoutingProxy();
...
app.all('/api/*', function(req, res){
apiProxy.proxyRequest(req, res, {host: 'example.com', port: 9000});
});
...but POST requests to my server appear to just hang, and never arrive at the target server.
I'm working on a stripped-down-but-working example of this but thought I'd ask first. Has anyone seen this behavior, or are there good examples of node-http-proxy coexisting with express? Thanks!