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
Some of the examples in the readme show proxyRequest taking some options, when actually proxyRequest's last argument appears to be a buffer object. This code in particular doesn't seem to work:
httpProxy.createServer(function(req,res,proxy){//// Put your custom server logic here//proxy.proxyRequest(req,res,{host: 'localhost',port: 9000});}).listen(8000);
The text was updated successfully, but these errors were encountered:
This is the correct method signature for a RoutingProxy, which is what is passed to the handler when no options (e.g. host and port) are passed to httpProxy.createServer().
Some of the examples in the readme show proxyRequest taking some options, when actually proxyRequest's last argument appears to be a buffer object. This code in particular doesn't seem to work:
The text was updated successfully, but these errors were encountered: