Skip to content

fix(sigv4): Convert empty query parameters to null #6082

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 3 commits into from
Mar 27, 2025

Conversation

tyllark
Copy link
Member

@tyllark tyllark commented Mar 19, 2025

Issue #, if available:
#6008

Description of changes:
Web builds send an OPTions request to verify CORS compatibility with the URL and a 404 can be returned if the URL contains unexpected query Parameters. URI.toString() appends a "?" to the URL for an empty query parameter map and we are currently setting null a query parameter to an empty map.

This fix converts empty query parameters to null if it empty to prevent the URL from unintentionally having a "?" appended.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tyllark tyllark requested a review from a team as a code owner March 19, 2025 20:36
@tyllark tyllark merged commit c2d948a into main Mar 27, 2025
359 checks passed
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.

2 participants