diff --git a/httpx/_urlparse.py b/httpx/_urlparse.py index 232269ee4d..d3f8c88af0 100644 --- a/httpx/_urlparse.py +++ b/httpx/_urlparse.py @@ -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: