fixed json support and closes #971

This commit is contained in:
jun
2020-07-24 16:25:41 +08:00
parent 6b432a07cc
commit ac9664e842
2 changed files with 5 additions and 1 deletions

View File

@@ -237,6 +237,10 @@ def make_request_chain_style(request: Dict) -> Text:
if "json" in request:
req_json = request["json"]
if not isinstance(req_json, Text):
pass
else:
req_json = f'"{req_json}"'
request_chain_style += f".with_json({req_json})"
if "timeout" in request: