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(storage): preserve supplied endpoint's scheme #4609
Merged
tritone
merged 7 commits into
googleapis:master
from
BrennaEpp:preserve-endpoint-scheme
Aug 13, 2021
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
954b8f0
fix(storage): remove unnecessary variable
BrennaEpp 439d22d
Merge branch 'master' of https://github.com/BrennaEpp/google-cloud-go…
BrennaEpp 4f6b1dc
fix(storage): preserve supplied endpoint's scheme
BrennaEpp 7ba574e
Merge branch 'master' into preserve-endpoint-scheme
BrennaEpp 1892ada
Merge branch 'master' into preserve-endpoint-scheme
BrennaEpp 6d00fbc
Add check for no scheme
BrennaEpp 4247914
Merge branch 'preserve-endpoint-scheme' of https://github.com/BrennaE…
BrennaEpp File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we set
scheme
in L114 & L123 above-- I guess this no longer does anything?Also, is it possible for the returned endpoint from
htransport.NewClient
to have an empty scheme?I'm thinking we should keep L114 & L123 as is and only set scheme here if
u.Scheme != ""
, just out of caution. Does that make sense?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The endpoint for
htransport.NewClient
should always have a scheme as long as we send in theWithDefaultEndpoint
option. But yes that makes sense, since it does not actually promise to.