Fix _post_json behavior

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2017-02-03 19:53:58 -08:00
parent 14d81d96c1
commit cd05d8d53d
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ class APIClient(
for k, v in six.iteritems(data):
if v is not None:
data2[k] = v
else:
elif data is not None:
data2 = data
if 'headers' not in kwargs: