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:
parent
ea7d3a268c
commit
5dc3bbcddd
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user