Skip to content

Commit

Permalink
Fix httpx is not encoding with symbol '%s' (encode#3140)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tunglies committed Mar 14, 2024
1 parent 7df47ce commit 2068796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpx/_urlparse.py
Expand Up @@ -424,7 +424,7 @@ def is_safe(string: str, safe: str = "/") -> bool:
"""
Determine if a given string is already quote-safe.
"""
NON_ESCAPED_CHARS = UNRESERVED_CHARACTERS + safe + "%"
NON_ESCAPED_CHARS = UNRESERVED_CHARACTERS + safe

# All characters must already be non-escaping or '%'
for char in string:
Expand Down

0 comments on commit 2068796

Please sign in to comment.