Skip to content

Commit

Permalink
Merge pull request #10098 from mikhailantoshkin/python-empty-payload
Browse files Browse the repository at this point in the history
[Python] Fix empty payload with body = None
  • Loading branch information
HugoMario authored Apr 24, 2020
2 parents 13dbc0a + da31b75 commit da00f5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class RESTClientObject(object):
if query_params:
url += '?' + urlencode(query_params)
if re.search('json', headers['Content-Type'], re.IGNORECASE):
request_body = None
request_body = '{}'
if body is not None:
request_body = json.dumps(body)
r = self.pool_manager.request(
Expand Down

0 comments on commit da00f5c

Please sign in to comment.