mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
request.args.getlist() returns [] if missing, refs #774
Also added some unit tests for request.args
This commit is contained in:
parent
7ccd55a163
commit
84616a2364
4 changed files with 14 additions and 4 deletions
|
|
@ -26,7 +26,7 @@ async def render_test_all_parameters(
|
|||
datasette, columns, rows, sql, query_name, database, table, request, view_name, data
|
||||
):
|
||||
headers = {}
|
||||
for custom_header in request.args.getlist("header") or []:
|
||||
for custom_header in request.args.getlist("header"):
|
||||
key, value = custom_header.split(":")
|
||||
headers[key] = value
|
||||
result = await datasette.databases["fixtures"].execute("select 1 + 1")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue