Merge pull request #2814 from Lukasa/issue/2813

Use general null check for JSON
This commit is contained in:
Ian Cordasco
2015-10-08 10:13:08 -05:00
+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)