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

Respect NO_PROXY environment variable #667

Merged
merged 2 commits into from
Dec 2, 2017
Merged

Conversation

danielmoore
Copy link

@danielmoore danielmoore commented Dec 1, 2017

This PR is addressing the same issue as #557, but delegates the logic to the well-tested proxy-from-env library.

I think this should be released as a patch that simply fixes an issue with the current support for environment variables.

I've also included a small fix to the tests. For some reason, nope on my MacOS High Sierra system resolves to one of my external IP addresses, which makes the test non-deterministic. I've changed it to attempt to connect to 127.0.0.1:8 which will reliably refuse a connection. Intriguingly, this is also a good test of the proxy handling.

closes #557

Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

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

I see no reason not to :) Thanks 👍

@gr2m gr2m merged commit 9c68105 into octokit:master Dec 2, 2017
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

2 participants