mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed bug with download of BLOB null, refs #1050
This commit is contained in:
parent
cefd058c1c
commit
89519f9a37
4 changed files with 28 additions and 10 deletions
|
|
@ -1083,7 +1083,7 @@ class BlobView(BaseView):
|
|||
"Content-Disposition": 'attachment; filename="{}"'.format(filename),
|
||||
}
|
||||
return Response(
|
||||
body=rows[0][column],
|
||||
body=rows[0][column] or b"",
|
||||
status=200,
|
||||
headers=headers,
|
||||
content_type="application/binary",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue