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: Include trailing slash when passing empty query parameters. #1476

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

dcr-stripe
Copy link
Contributor

r? @kamil-stripe

Summary

Fixes URL creation to include a trailing slash for endpoints which should have a query parameter (eg. /v1/customers/{id}) to avoid using /v1/customers as the endpoint instead of /v1/customers/ when an empty ID parameter is passed.

The server interprets these differently based on whether the trailing slash is present.

@dcr-stripe dcr-stripe marked this pull request as ready for review July 14, 2022 19:13
@dcr-stripe dcr-stripe requested a review from kamil-stripe July 14, 2022 19:13
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.

2 participants