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: QueryParams::iter: empty iterator when empty query #352

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

kanarus
Copy link
Member

@kanarus kanarus commented Feb 6, 2025

Before, when request::QueryParams is constructed from an empty bytes, QueryParams::iter returned an iterator that have a single item of an empty string. This is unexpected and This OR fixes it to return empty iterator from empty input.
and add test for it

github-actions[bot]
github-actions bot previously approved these changes Feb 6, 2025
@kanarus kanarus merged commit 575eec0 into v0.22 Feb 6, 2025
3 checks passed
@kanarus kanarus deleted the fix/QueryParams-iter branch February 6, 2025 20:17
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