Skip to content

fix: encode + in parametersToQueryString #1081

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
May 22, 2025
Merged

fix: encode + in parametersToQueryString #1081

merged 3 commits into from
May 22, 2025

Conversation

ChiragAgg5k
Copy link
Member

@ChiragAgg5k ChiragAgg5k commented May 22, 2025

What does this PR do?

CharacterSet.urlHostAllowed contains the + symbol as allowed, leading to it not being encoded and errors in requests that contain it, specifically time based requests in Queries:

https://stackoverflow.com/questions/41561853/couldnt-encode-plus-character-in-url-swift

The PR as the stack overflow thread suggests encodes the + symbol separately.

Test Plan

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

yes.

@ChiragAgg5k ChiragAgg5k requested a review from abnegate May 22, 2025 07:02
@ChiragAgg5k ChiragAgg5k changed the title fix: use rfc3986Unreserved for url encoding fix: encode + in parametersToQueryString May 22, 2025
@abnegate abnegate merged commit 1c11db8 into master May 22, 2025
37 checks passed
@abnegate abnegate deleted the fix-url-encoding branch May 22, 2025 07:40
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