Skip to content

Commit 948bbd9

Browse files
committed
Pass data using 'json' so it gets encoded and correctly mimetype-d.
1 parent 66e3ae3 commit 948bbd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

paystackapi/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _request(self, method, resource_uri, **kwargs):
5555
"""
5656
data = kwargs.get('data')
5757
response = method(self.API_BASE_URL + resource_uri,
58-
data=data, headers=self.headers)
58+
json=data, headers=self.headers)
5959
response.raise_for_status()
6060
return response.json()
6161

0 commit comments

Comments
 (0)