Skip to content

Commit 5cfec6f

Browse files
authored
Add missing URL encoding in HTTPFileSystem._put_file() method (#1450)
1 parent b6536be commit 5cfec6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsspec/implementations/http.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ async def gen_chunks():
307307
)
308308

309309
meth = getattr(session, method)
310-
async with meth(rpath, data=gen_chunks(), **kw) as resp:
310+
async with meth(self.encode_url(rpath), data=gen_chunks(), **kw) as resp:
311311
self._raise_not_found_for_status(resp, rpath)
312312

313313
async def _exists(self, path, **kwargs):

0 commit comments

Comments
 (0)