mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +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:
parent
6289e3ebfa
commit
7e2b6b6a85
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user