mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-10 11:00:22 +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)))
|
||||
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.
|
||||
if not (Santiago.SUPPORTED_PROTOCOLS &
|
||||
set(request_body["reply_versions"])):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user