Skip to content

Commit

Permalink
ENH: More compact body
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechcima committed Feb 4, 2021
1 parent 2012fc1 commit b5e2602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heappeac/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def request(self, method, url, query_params=None, headers=None,
if re.search('json', headers['Content-Type'], re.IGNORECASE):
request_body = '{}'
if body is not None:
request_body = json.dumps(body)
request_body = json.dumps(body, separators=(',', ':'))
r = self.pool_manager.request(
method, url,
body=request_body,
Expand Down

0 comments on commit b5e2602

Please sign in to comment.