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

add support for flag type params with no value #259

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

DeWarner
Copy link
Contributor

@DeWarner DeWarner commented Jun 9, 2022

Fixes #258

Adds new testing to cover related edge cases

@DeWarner
Copy link
Contributor Author

tests failures appear to be unrelated, looks like the minimum rust version needs to be bumped 1.51 -> 1.56

also adding additional test cases to ensure correct behavior.

get_param("reverse") does not return Some("") as expected for query string ?reverse
The expected behavior for URLParams is to treat params with no = in them as if the same as an empty value
localhost:80/api/users?reverse should be equivalent to localhost:80/api/users?reverse=

for reference:
https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams#empty_value_vs._no_value
@bradfier bradfier merged commit c95e3e5 into tomaka:master Oct 12, 2022
@DeWarner DeWarner deleted the flag-urlparams branch October 13, 2022 08:54
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.

URL Params do not work as expected for flag type params
2 participants