-
Notifications
You must be signed in to change notification settings - Fork 2k
toProxy option is broken #703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@jcrugzz not sure I'll have time to look into this further. I think the information I set out in the original issue description is enough to reliably reproduce the problem. I ended up just rolling my own proxying using |
Just an FYI, this was the problem line for me: outgoing.path = common.urlJoin(targetPath, outgoingPath); in common.js. This was returning an invalid URL. targetPath = '/'; Was returning "/http:/joshuaodmark.com/proxy_test.php". |
rewrite function common.urlJoin as follow: common.urlJoin = function() { var i = 0; arr = arr.filter(function(a){ return arr.join('/'); |
@yulesyu will take a pull request with added test! |
Should be fixed |
I'm using 1.11.2 and trying to make my request hit a cntlm proxy. I see the requests but the url is like:
Note the slash at the beginning of the URL. I'm using the If I disable it, the url becomes only the Is this a regression ? Or am I badly miss-using the module ? |
In the first place it's somewhat poorly documented, so perhaps I'm just doing it wrong.
Say I do this:
I should expect squidproxy:3128 to receive a
GET http://destination/yay HTTP/1.1
. Instead, it receives aGET http:/destination/yay HTTP/1.1
- note the single slash after protocol. It looks likecommon.urlJoin
is causing the munging here.The text was updated successfully, but these errors were encountered: