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 trailing ? when creating the request with empty query items #29

Merged
merged 1 commit into from Apr 11, 2022
Merged

Fix trailing ? when creating the request with empty query items #29

merged 1 commit into from Apr 11, 2022

Conversation

grdsdev
Copy link
Contributor

@grdsdev grdsdev commented Apr 11, 2022

When creating a request with an empty query params, the request is created with a trailing ? without any parameter.

This PR adds a fix for setting the component's queryItems only when the query is non-empty.

@kean kean merged commit 23f1fb4 into kean:main Apr 11, 2022
@kean
Copy link
Owner

kean commented Apr 11, 2022

Thanks for the fix!

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.

None yet

2 participants