mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
New implementation for RequestParams
- no longer subclasses dict - request.args[key] now returns first item, not all items - removed request.raw_args entirely Closes #774
This commit is contained in:
parent
f272cbc65f
commit
81be31322a
6 changed files with 49 additions and 16 deletions
|
|
@ -63,11 +63,6 @@ class Request:
|
|||
def args(self):
|
||||
return RequestParameters(parse_qs(qs=self.query_string))
|
||||
|
||||
@property
|
||||
def raw_args(self):
|
||||
# Deprecated, undocumented - may be removed in Datasette 1.0
|
||||
return {key: value[0] for key, value in self.args.items()}
|
||||
|
||||
async def post_vars(self):
|
||||
body = []
|
||||
body = b""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue