Skip to content

Commit

Permalink
encode directly instead of dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
agarrido19 committed Jul 6, 2022
1 parent d481738 commit f2965ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cuenca/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def request(
method=method,
url='https://' + self.host + urljoin('/', endpoint),
auth=self.auth,
data=json.dumps(data, cls=JSONEncoder),
json=json.loads(JSONEncoder().encode(data)),
params=params,
**kwargs,
)
Expand Down

0 comments on commit f2965ba

Please sign in to comment.