mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
/db/table/-/blob/pk/column.blob download URL, refs #1036
This commit is contained in:
parent
10c35bd371
commit
5a15197960
9 changed files with 183 additions and 66 deletions
|
|
@ -51,6 +51,9 @@ class DatasetteError(Exception):
|
|||
class BaseView:
|
||||
ds = None
|
||||
|
||||
def __init__(self, datasette):
|
||||
self.ds = datasette
|
||||
|
||||
async def head(self, *args, **kwargs):
|
||||
response = await self.get(*args, **kwargs)
|
||||
response.body = b""
|
||||
|
|
@ -151,9 +154,6 @@ class DataView(BaseView):
|
|||
name = ""
|
||||
re_named_parameter = re.compile(":([a-zA-Z0-9_]+)")
|
||||
|
||||
def __init__(self, datasette):
|
||||
self.ds = datasette
|
||||
|
||||
def options(self, request, *args, **kwargs):
|
||||
r = Response.text("ok")
|
||||
if self.ds.cors:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue