Skip to content

Use proxy-agent to support $HTTP_PROXY #2400

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

Merged
merged 10 commits into from
Dec 4, 2020
Merged

Use proxy-agent to support $HTTP_PROXY #2400

merged 10 commits into from
Dec 4, 2020

Conversation

nhooyr
Copy link
Contributor

@nhooyr nhooyr commented Dec 4, 2020

Closes #124

This works by monkey patching the http and https modules's default agent
at runtime to the one given by the proxy-agent package.

@nhooyr nhooyr force-pushed the HTTP_PROXY-7e1f branch 6 times, most recently from 5c5adb5 to d2f3e6c Compare December 4, 2020 07:02
@nhooyr
Copy link
Contributor Author

nhooyr commented Dec 4, 2020

Confirmed working, this should be good now!

File names should not have dashes.
Closes #124

This works by monkey patching the http and https modules's default agent
at runtime to the one given by the proxy-agent package.
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Tested here as well and everything looks swell. I'm ecstatic to have this implemented at long last!! Per-commit review is 🔥 as usual. 😄

buildfile.entrypoint ignores all args now and is hard coded to use these
strings as exclude.
The previously used version seems to be buggy. I was seeing undefined
errors when using a logger.named logger at level info.
Closes #2364
See #2366

cc @code-asher

My previous commit didn't fix anything but still good to update @coder/logger.
@nhooyr nhooyr merged commit eb4864f into master Dec 4, 2020
@nhooyr nhooyr deleted the HTTP_PROXY-7e1f branch December 4, 2020 21:12
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.

3 participants