diff --git a/httpx/_models.py b/httpx/_models.py index 3310ff5197..42737ad324 100644 --- a/httpx/_models.py +++ b/httpx/_models.py @@ -234,7 +234,7 @@ def path(self) -> str: assert url.path == "/pa th" """ path = self._uri_reference.path or "/" - return unquote(path) + return "%2F".join(map(unquote, path.split("%2F"))) @property def query(self) -> bytes: