-
Notifications
You must be signed in to change notification settings - Fork 80
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
enable proxy for remaining clients #152
Conversation
I don't think this was necessary. It was required in #145, as you were providing a Transport object. imo, it's better to leave it as nil so that you're sure to retain the other characteristics of DefaultTransport. |
This reverts commit 293835e. It's unnecessary to specify ProxyFromEnvironment in these cases. It was required for the selfhosted client, as we are overriding the default Transport object. In these cases, Transport are nil, and so should default to DefaultTransport: https://cs.opensource.google/go/go/+/refs/tags/go1.22.0:src/net/http/client.go;l=60 This already has ProxyFromEnvironment as the default behaviour: https://github.com/golang/go/blob/master/src/net/http/transport.go#L44 As this is unnecessary, it's better to leave it undefined to ensure that the other characteristics of DefaultTransport are retained.
This reverts commit 293835e. It's unnecessary to specify ProxyFromEnvironment in these cases. It was required for the selfhosted client, as we are overriding the default Transport object. In these cases, Transport are nil, and so should default to DefaultTransport: https://cs.opensource.google/go/go/+/refs/tags/go1.22.0:src/net/http/client.go;l=60 This already has ProxyFromEnvironment as the default behaviour: https://github.com/golang/go/blob/master/src/net/http/transport.go#L44 As this is unnecessary, it's better to leave it undefined to ensure that the other characteristics of DefaultTransport are retained.
Co-authored-by: David Collom <[email protected]>
On the back of #145 this add's support for the remaining Clients as there may be proxies across the entire environment