Skip to content
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

localAddress or proxy config is lost when redirecting #1437

Closed
wants to merge 4 commits into from

Conversation

0x4139
Copy link
Contributor

@0x4139 0x4139 commented Feb 19, 2015

the localAddress or proxy configuration is lost when redirecting because the request object is initialized with an empty configuration instead of inheriting the one that made the initial request

…roxy is lost due to the reinitialization without parameters of the request object
@simov
Copy link
Member

simov commented Feb 19, 2015

@0x4139 it would be great if you can provide a test case as well.

@0x4139
Copy link
Contributor Author

0x4139 commented Feb 19, 2015

it seems that i can't bind on any interface in travis.

@simov
Copy link
Member

simov commented Feb 20, 2015

First of all this project uses 2 space indentation, can you check that in your editor? After that you can run npm test on your local workstation and fix all of lint errors, before pushing to GitHub.

@simov simov mentioned this pull request Feb 20, 2015
});
});
request.get({
uri: 'http://google.com', //redirects to 'http://google.com'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😕 Maybe this should be redirects to https://google.com?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough, the problem is that travis doesn't have interfaces and the tests are failing :( , they are passing on my local machine but not on travis

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0x4139 did you ever checked the travis-ci errors https://travis-ci.org/request/request/jobs/51369942 ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or run npm test locally

@0x4139
Copy link
Contributor Author

0x4139 commented Feb 25, 2015

@simov sorry did not run npm test my bad.

@0x4139
Copy link
Contributor Author

0x4139 commented Feb 25, 2015

Certificates are expired

@simov
Copy link
Member

simov commented Feb 26, 2015

@0x4139 can you pull simov@1f6fbd5 here? I removed the proxy parameter as there is a check for it inside the init method, and also added one for the localAddress After that this is a 👍

@simov
Copy link
Member

simov commented Mar 5, 2015

Closing in favor of #1460

@simov simov closed this Mar 5, 2015
@joshux joshux mentioned this pull request Jul 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants