Skip to content

Conversation

@max-zilla
Copy link
Contributor

Some new endpoints had %s/api and others had %sapi which caused issues for backwards compatibility. This replaces all calls in both versions with posixpath.join, which should return a valid URL whether the host has a trailing slash or not.

Copy link
Member

@longshuicy longshuicy left a comment

Choose a reason for hiding this comment

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

I tested with wordcount and it seems to work.
Apart from a few places I found the redundant client.host, the PR looks good.

@max-zilla max-zilla requested a review from longshuicy October 11, 2023 18:13
@max-zilla max-zilla merged commit c18cffc into master Oct 11, 2023
@max-zilla max-zilla deleted the posixpath-joins branch October 11, 2023 18:25
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.

3 participants