Skip to content

Add no_proxy support for HTTPS CONNECT requests#750

Open
jcrussell wants to merge 1 commit intoelazarl:masterfrom
jcrussell:master
Open

Add no_proxy support for HTTPS CONNECT requests#750
jcrussell wants to merge 1 commit intoelazarl:masterfrom
jcrussell:master

Conversation

@jcrussell
Copy link
Copy Markdown

I noticed that no_proxy wasn't been used -- worked after applying this patch.


When https_proxy is set, HTTPS CONNECT requests now respect the no_proxy environment variable by checking http.ProxyFromEnvironment() before dialing through the upstream proxy. If the destination matches no_proxy, the connection is made directly.

Also removes TestHttpProxyAddrsFromEnv which is redundant with TestGoproxyThroughProxy and was potentially flaky with no_proxy settings.

When https_proxy is set, HTTPS CONNECT requests now respect the no_proxy
environment variable by checking http.ProxyFromEnvironment() before
dialing through the upstream proxy. If the destination matches no_proxy,
the connection is made directly.

Also removes TestHttpProxyAddrsFromEnv which is redundant with
TestGoproxyThroughProxy and was potentially flaky with no_proxy settings.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.

1 participant