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

client: encode the authority by default #6318

Merged
merged 1 commit into from
Jun 6, 2023
Merged

Conversation

anicr7
Copy link
Contributor

@anicr7 anicr7 commented May 26, 2023

Currently the endpoint is returned as the authority unless it can be determined by the scheme or from the dial or credentials. In case the endpoint has multiple slashes, this can be invalid. To handle this use case encode the authority by default.

In the future this can be subsumed by adding per resolver builder method that can provide a more sophisticated logic for determining authority.

@dfawley

(FYI: this PR was rolled back before any release)
RELEASE NOTES: none

@anicr7 anicr7 marked this pull request as ready for review May 26, 2023 16:41
@dfawley dfawley self-requested a review May 31, 2023 20:15
@dfawley dfawley self-assigned this May 31, 2023
@dfawley dfawley added this to the 1.57 Release milestone Jun 2, 2023
@dfawley dfawley changed the title Encode the authority by default client: encode the authority by default Jun 6, 2023
@dfawley dfawley added the Type: Behavior Change Behavior changes not categorized as bugs label Jun 6, 2023
@dfawley dfawley merged commit 68576b3 into grpc:master Jun 6, 2023
1 check passed
zasweq added a commit to zasweq/grpc-go that referenced this pull request Jun 9, 2023
zasweq added a commit that referenced this pull request Jun 9, 2023
@anicr7 anicr7 deleted the url_encoding branch June 30, 2023 22:44
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Behavior Change Behavior changes not categorized as bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants