2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

More easily recognize application/json input in request data for POST

Browsers may include more data.  Tolerate by doing a substring search as is the case for form data.
This commit is contained in:
Jarrod Johnon 2014-11-07 11:03:44 -05:00
parent 6289e3ebfa
commit 7e2b6b6a85

View File

@ -128,7 +128,7 @@ def _get_query_dict(env, reqbody, reqtype):
qdict[ky] = na
else:
qdict[ky] = pbody[ky][0]
elif 'application/json' == reqtype:
elif 'application/json' in reqtype:
pbody = json.loads(reqbody)
for key in pbody.iterkeys():
qdict[key] = pbody[key]