Skip to content

Commit

Permalink
Add missing URL encoding in HTTPFileSystem._put_file() method (#1450)
Browse files Browse the repository at this point in the history
  • Loading branch information
sisp committed Dec 7, 2023
1 parent b6536be commit 5cfec6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsspec/implementations/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5cfec6f

Please sign in to comment.