Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tb_rest_client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ 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)
if type(body) is not str:
request_body = json.dumps(body)
else:
request_body = body
r = self.pool_manager.request(
method, url,
body=request_body,
Expand Down