Skip to content

Only add a ? when query string is nonempty #1589

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

Merged
merged 2 commits into from
May 16, 2022
Merged

Only add a ? when query string is nonempty #1589

merged 2 commits into from
May 16, 2022

Conversation

GambolingPangolin
Copy link
Contributor

In #1432 we changed the way that servant composes query strings. Among other problems, the new scheme always adds a ? even when the query parameter set is empty. This fixes the scheme so that when there are no query parameters, the resulting query string is empty.

Copy link
Contributor

@tchoutri tchoutri left a comment

Choose a reason for hiding this comment

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

Please add a changelog entry for your PR. :)

@GambolingPangolin
Copy link
Contributor Author

@tchoutri I just added it.

@tchoutri tchoutri merged commit 1fba9dc into haskell-servant:master May 16, 2022
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