Skip to content

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Jan 22, 2020

This PR fixes a bug in relation to the usage of url::join(). If A url
passed to Connection does not end in a trailing forward slash, a new url
will be constructed from the passed url with a trailing forward slash. When
joining a Connection url with an API path, the leading forward slash of the
path is trimmed, so that the path is appended to the url rather than replacing
any existing path segments.

Fixes #48

This commit fixes a bug in relation to the usage of url::join(). If A url
passed to Connection does not end in a trailing forward slash, a new url
will be constructed from the passed url with a trailing forward slash. When
joining a Connection url with an API path, the leading forward slash of the
path is trimmed, so that the path is appended to the url rather than replacing
any existing path segments.

Fixes #48
@russcam russcam added the bug Something isn't working label Jan 22, 2020
Copy link
Contributor Author

@russcam russcam left a comment

Choose a reason for hiding this comment

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

minor nitpick on the doc comment

@russcam russcam merged commit fb457fd into master Jan 22, 2020
@russcam russcam deleted the fix/48 branch January 23, 2020 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] There is no obvious way to support a reverse proxy
1 participant