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 % to reserved characters to encode in URL #4804

Merged

Conversation

slinstacart
Copy link
Contributor

Currently the library is not encoding the '%' character in GET parameters, i.e if I send a parameter string of '80%' this isn't parsed properly since it needs to be encoded to '%25'

This is a bug in UrlEncode.kt where it looks like it was introduced here in this PR which was originally encoding every character.

@apollo-cla
Copy link

@slinstacart: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@netlify
Copy link

netlify bot commented Mar 27, 2023

👷 Deploy request for apollo-android-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit b869831

@martinbonnin
Copy link
Contributor

Just in time for next release, thanks!

PS: we might want to switch to a full-blown uri library like https://github.com/eygraber/uri-kmp/

Copy link
Contributor

@BoD BoD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 👍

@martinbonnin martinbonnin added this pull request to the merge queue Mar 28, 2023
Merged via the queue into apollographql:main with commit 84e3b00 Mar 28, 2023
martinbonnin pushed a commit that referenced this pull request Mar 28, 2023
* Add % to reserved characters to encode

* Remove unused variable

* Fix test
@martinbonnin martinbonnin mentioned this pull request Apr 3, 2023
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

4 participants