From 2b3bcac17c4b1305b2a9ac7ec543399bd9b2e97f Mon Sep 17 00:00:00 2001 From: Jesse VanderWees Date: Tue, 1 Dec 2020 21:22:05 +0100 Subject: [PATCH] don't unquote slashes as this corrupts the path --- httpx/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: