Use general null check for JSON

This commit is contained in:
Cory Benfield
2015-10-08 14:53:35 +01:00
parent e499b354c4
commit 3948a9562d
+1 -1
View File
@@ -414,7 +414,7 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
content_type = None
length = None
if data == {} and json is not None:
if not data and json is not None:
content_type = 'application/json'
body = complexjson.dumps(json)