-
-
Notifications
You must be signed in to change notification settings - Fork 813
Closed
Labels
Description
datasette/datasette/utils/asgi.py
Lines 396 to 405 in 3c33b42
| class AsgiFileDownload: | |
| def __init__( | |
| self, filepath, filename=None, content_type="application/octet-stream" | |
| ): | |
| self.filepath = filepath | |
| self.filename = filename | |
| self.content_type = content_type | |
| async def asgi_send(self, send): | |
| return await asgi_send_file(send, self.filepath, content_type=self.content_type) |
self.filename should be passed to asgi_send_file()Reactions are currently unavailable