You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my use case is to create a proxy for the browser, which means i want to route requests
through my proxy, and not to a specific proxied server.
the issue is easy to reproduce, using the promise.js example, no response is being
returned, actually the data inside the transformerFunction appears to be a Buffer
//var proxy = httpProxy.createProxyServer({target: 'http://localhost:' + proxiedPort});varproxy=httpProxy.createProxyServer({});// we don't want to set up the target right nowapp.use(transformerProxy(transformerFunction));app.use(function(req,res){vartarget='http://'+req.headers.host;// This is where we set the target we wantproxy.web(req,res,{target:target});//proxy.web(req, res);});
The text was updated successfully, but these errors were encountered:
my use case is to create a proxy for the browser, which means i want to route requests
through my proxy, and not to a specific proxied server.
the issue is easy to reproduce, using the promise.js example, no response is being
returned, actually the data inside the transformerFunction appears to be a Buffer
The text was updated successfully, but these errors were encountered: