Skip to content

Commit d23000d

Browse files
committed
Pass the Python dict directly via the json= parameter of requests.request().
Let requests handle serialization and set the correct headers.
1 parent 8af471f commit d23000d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sysmlv2_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _request(
4444
method=method,
4545
url=url,
4646
params=params,
47-
data=json_data,
47+
json=json_data,
4848
)
4949

5050
# Check for specific error codes first

0 commit comments

Comments
 (0)