Skip to content

Commit

Permalink
simplify requests.post call
Browse files Browse the repository at this point in the history
  • Loading branch information
pgp committed Aug 11, 2023
1 parent 17139e6 commit a43c7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mega/mega.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def _api_request(self, data):
response = requests.post(
url,
params=params,
data=json.dumps(data),
json=data,
timeout=self.timeout,
)
json_resp = json.loads(response.text)
Expand Down

0 comments on commit a43c7fd

Please sign in to comment.