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

Clarify that base_url in client well_known may or may not include trailing slash #3562

Merged
merged 4 commits into from Dec 23, 2021

Conversation

H-Shay
Copy link
Contributor

@H-Shay H-Shay commented Dec 8, 2021

Fixes #3465. The change adds a line explicitly warning developers that the base_url of client well_known may or may not include a trailing slash and to be prepared to handle both cases.

Preview: https://pr3562--matrix-org-previews.netlify.app

Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

Overall looks fine - can we get a changelog please? :)

content/client-server-api/_index.md Outdated Show resolved Hide resolved
@shenanigans77-jpg
Copy link

shenanigans77-jpg commented Dec 9, 2021 via email

@turt2live
Copy link
Member

Sorry @shenanigans77-jpg, I'm not sure what you mean?

@turt2live turt2live self-requested a review December 13, 2021 22:32
Comment on lines 289 to 290
2. It is important to note that this value might include a trailing
`/`. Consumers should be prepared to handle both cases.
Copy link
Member

Choose a reason for hiding this comment

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

I think we need to move this a bit further down - it doesn't seem to make much sense to talk about trailing slashes before validating it as a URL?

@H-Shay H-Shay requested a review from richvdh December 22, 2021 17:26
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm, thank you!

@richvdh richvdh merged commit 87fcb7c into main Dec 23, 2021
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.

spec does not specify if base_url in client well-known should include trailing slash
4 participants