node-janus
node-janus copied to clipboard
Proxy responds with PAC script for every request
When I enable the Janus proxy ang go to any URL, all I get is a PAC script. I thought it was because of in the handleContent function in proxy.js, but it seems the problem is in the handleRequest function: request.url does not include a host and a protocol.
The quick, dirty fix for this is replacing line 156 with:
var parsedUrl = url.parse('http://' + request.headers.host + request.url);
Why is it so?