Skip to content

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

Merged
gcf-merge-on-green[bot] merged 4 commits intogoogleapis:mainfrom
noahdietz:non-transport-default-transport
May 14, 2024
Merged

fix(auth): handle non-Transport DefaultTransport#10162
gcf-merge-on-green[bot] merged 4 commits intogoogleapis:mainfrom
noahdietz:non-transport-default-transport

Conversation

@noahdietz
Copy link
Copy Markdown
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 review from a team and 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
@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