Skip to content

Commit f2965ba

Browse files
committed
encode directly instead of dumps
1 parent d481738 commit f2965ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuenca/http/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def request(
114114
method=method,
115115
url='https://' + self.host + urljoin('/', endpoint),
116116
auth=self.auth,
117-
data=json.dumps(data, cls=JSONEncoder),
117+
json=json.loads(JSONEncoder().encode(data)),
118118
params=params,
119119
**kwargs,
120120
)

0 commit comments

Comments
 (0)