mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix for Python 3.5
This commit is contained in:
parent
b97cd53a48
commit
3bd5e14bc1
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ async def asgi_send_file(
|
|||
if filename:
|
||||
headers["Content-Disposition"] = 'attachment; filename="{}"'.format(filename)
|
||||
first = True
|
||||
async with aiofiles.open(filepath, mode="rb") as fp:
|
||||
async with aiofiles.open(str(filepath), mode="rb") as fp:
|
||||
if first:
|
||||
await asgi_start(
|
||||
send,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue