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

Resolve queryparam quoting #3187

Merged
merged 5 commits into from May 3, 2024
Merged

Resolve queryparam quoting #3187

merged 5 commits into from May 3, 2024

Conversation

tomchristie
Copy link
Member

@tomchristie tomchristie commented May 2, 2024

  • Percent-encoding in params={} should match browser form behavior. (Always percent-encode.)
  • Percent-encoding in url={} should match browser URL bar behavior. (Percent-encode, preserving existing escape sequences.)

Closes #3135.
Closes #3140.

@tomchristie tomchristie requested a review from jhominal May 2, 2024 16:14
@tomchristie tomchristie marked this pull request as ready for review May 2, 2024 16:15
Copy link
Member

@jhominal jhominal left a comment

Choose a reason for hiding this comment

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

@tomchristie I think you zeroed in on the right root change, that is, to always escape values from parsed query parameters.

Thank you very much for writing this PR as fast as you did!

@tomchristie tomchristie merged commit a7092af into master May 3, 2024
5 checks passed
@tomchristie tomchristie deleted the resolve-queryparam-quoting branch May 3, 2024 00:09
@tomchristie
Copy link
Member Author

Oops, I should have included a CHANGELOG.md entry.

Perhaps we should update the PR template to include that as a checklist item?

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.

Httpx is not encoding "%" symbol while sending requests
2 participants