Skip to content

Conversation

@rutchkiwi
Copy link
Contributor

Hello. I didn't make a separate issue, as I think the code itself most easily explains this problem.

The bug

Empty query strings would make request-url insert a trailing ? in the url for no reason. While not strictly invalid, it's a bit ugly. Empty query strings are added by ring.mock.request/request when you pass in an empty map for parameters.

Fix

This fixes that by checking that the query string is not empty before adding the ?.

Thanks in advance for your attention!

Empty query strings would make request-url insert a trailing ?
in the url for no reason. While not strictly invalid, it's a bit ugly.
Empty query strings are added by ring.mock.request/request when you pass
in an empty map for parameters.

This fixes that by checking that the query string is not empty before
adding the ?.
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.

1 participant