Fail the message if list-keys aren't lists.

This commit is contained in:
Nick Daly 2012-06-13 08:15:38 -05:00
parent 200357b1ff
commit 38b8cdac74

View File

@ -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"])):