Skip to content

Can't user query parameters without a value #175

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

Closed
ElizabethForest opened this issue Nov 7, 2017 · 1 comment
Closed

Can't user query parameters without a value #175

ElizabethForest opened this issue Nov 7, 2017 · 1 comment

Comments

@ElizabethForest
Copy link

Hi!

In the browser, you are able to do mywebsite.com?param and param shows up as a query param with an empty string, but when using compojure param doesn't show up in :query-params.

Doing mywebsite.com?param= gives the query-params of {:param ""} which is expected, but then if you do mywebsite.com?param=1&param2 you get {:param 1, :param2 nil}.

It feels a little inconsistent, and I would like to be able to use mywebsite.com?param.

I am using 1.6.0.

@weavejester
Copy link
Owner

Can you open this issue on Ring? Compojure doesn't have any opinion on how to parse query parameters.

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

No branches or pull requests

2 participants