mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
Fail the message if list-keys aren't lists.
This commit is contained in:
parent
200357b1ff
commit
38b8cdac74
@ -401,6 +401,10 @@ class Santiago(object):
|
|||||||
debug_log("blank key {0}: {1}".format(key, str(request_body)))
|
debug_log("blank key {0}: {1}".format(key, str(request_body)))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if False in [type(request_body[key]) == list for key in
|
||||||
|
Santiago.LIST_KEYS if request_body[key] is not None]:
|
||||||
|
return
|
||||||
|
|
||||||
# versions must overlap.
|
# versions must overlap.
|
||||||
if not (Santiago.SUPPORTED_PROTOCOLS &
|
if not (Santiago.SUPPORTED_PROTOCOLS &
|
||||||
set(request_body["reply_versions"])):
|
set(request_body["reply_versions"])):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user