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):