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 URL resolution for base URI with non-empty path #173

Merged
merged 3 commits into from
Dec 8, 2023
Merged

Conversation

pkwarren
Copy link
Contributor

@pkwarren pkwarren commented Dec 8, 2023

If a client uses a base URI with a non-empty path (i.e. 'https://connectrpc.com/api/'), then any RPC methods should be resolved relative to the path (instead of ignoring it as they do today).

Fixes #149.

If a client uses a base URI with an absolute path (i.e.
'https://connectrpc.com/api/'), then any RPC methods should be resolved
relative to the absolute path (instead of ignoring it as they do today).

Fixes #149.
@pkwarren pkwarren requested a review from jhump December 8, 2023 16:44
@pkwarren pkwarren changed the title Fix URL resolution for base URI with absolute path Fix URL resolution for base URI with non-empty path Dec 8, 2023
Copy link
Member

@jhump jhump left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pkwarren pkwarren merged commit f95a73f into main Dec 8, 2023
9 checks passed
@pkwarren pkwarren deleted the pkw/issue-149 branch December 8, 2023 19:21
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.

URL assembly issue
2 participants