2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-28 03:48:35 +00:00

Theoretically add JSON support for data input to HTTP API

I have not yet tested this support to assure it works.
This commit is contained in:
Jarrod Johnson 2014-02-22 21:58:21 -05:00
parent ea7d3a268c
commit 5dc3bbcddd

View File

@ -107,6 +107,10 @@ def _get_query_dict(env, reqbody, reqtype):
qdict[ky] = na
else:
qdict[ky] = pbody[ky][0]
elif 'application/json' == reqtype:
pbody = json.loads(reqbody)
for key in pbody.iterkeys():
qdict[key] = pbody[ky]
if 'restexplorerhonorkey' in qdict:
nqdict = {}
for key in qdict: