node-janus icon indicating copy to clipboard operation
node-janus copied to clipboard

Proxy responds with PAC script for every request

Open niutech opened this issue 10 years ago • 0 comments

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?

niutech avatar Jan 27 '16 23:01 niutech