Skip to content

fix: respect proxy env vars in anonymous http client#3326

Open
dvcorreia wants to merge 1 commit intointegrations:mainfrom
dvcorreia:fix/anonymous-client-proxy
Open

fix: respect proxy env vars in anonymous http client#3326
dvcorreia wants to merge 1 commit intointegrations:mainfrom
dvcorreia:fix/anonymous-client-proxy

Conversation

@dvcorreia
Copy link
Copy Markdown

Related to #1509


Before the change?

  • The anonymous HTTP client was using a bare http.Transport{} which does not respect HTTP_PROXY/HTTPS_PROXY environment variables.

After the change?

  • This change clones http.DefaultTransport instead, which has Proxy: http.ProxyFromEnvironment set by default.

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@github-actions github-actions bot added the Type: Bug Something isn't working as documented label Apr 9, 2026
@max-wittig
Copy link
Copy Markdown

/cc @stebje

The anonymous HTTP client was using a bare `http.Transport{}`
which does not respect `HTTP_PROXY`/`HTTPS_PROXY` environment
variables. This change clones `http.DefaultTransport` instead,
which has `Proxy: http.ProxyFromEnvironment` set by default.

Related to integrations#1509

Signed-off-by: Diogo Correia <diogo.correia@siemens.com>
@dvcorreia dvcorreia force-pushed the fix/anonymous-client-proxy branch from cd7faa3 to 6f071eb Compare April 10, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Something isn't working as documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants