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

fix(auth): handle non-Transport DefaultTransport #10162

Merged

Conversation

noahdietz
Copy link
Contributor

@noahdietz noahdietz commented May 13, 2024

Since http.DefaultTransport is a RoundTripper interface and mutable global variable, it is not safe to assume it is always going to concretely be *http.Transport. If it is not, I suppose we should just use the value directly instead of making a Clone. The http.DefaultTransport being overridden is pretty intentional by application authors, so it is best if we respect that and just reuse it direct.

Fixes #10159

@noahdietz noahdietz marked this pull request as ready for review May 13, 2024 22:48
@noahdietz noahdietz requested a review from a team as a code owner May 13, 2024 22:48
@noahdietz noahdietz requested a review from codyoss May 13, 2024 22:48
@noahdietz noahdietz added the automerge Merge the pull request once unit tests and other checks pass. label May 14, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit fa3bfdb into googleapis:main May 14, 2024
8 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label May 14, 2024
gcf-merge-on-green bot pushed a commit that referenced this pull request May 17, 2024
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.

identitytoolkit: panic when http.DefaultTransport is not a *http.Transport instance
2 participants