From ef023160b1cb9e68501ed078f1ebe8c5cf1c0418 Mon Sep 17 00:00:00 2001 From: Sigurd Spieckermann Date: Thu, 7 Dec 2023 10:51:33 +0100 Subject: [PATCH] Add missing URL encoding in `HTTPFileSystem._put_file()` method --- fsspec/implementations/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsspec/implementations/http.py b/fsspec/implementations/http.py index 2cd9eb5e0..f85113893 100644 --- a/fsspec/implementations/http.py +++ b/fsspec/implementations/http.py @@ -307,7 +307,7 @@ async def gen_chunks(): ) meth = getattr(session, method) - async with meth(rpath, data=gen_chunks(), **kw) as resp: + async with meth(self.encode_url(rpath), data=gen_chunks(), **kw) as resp: self._raise_not_found_for_status(resp, rpath) async def _exists(self, path, **kwargs):