Skip to content

Commit d0c465d

Browse files
committed
quickfix: base request body to json
1 parent 0d0e706 commit d0c465d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

braspag_sdk/utils/base_request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from future.utils import raise_with_traceback
66
from requests import Request, Session
77

8+
from braspag_sdk import ObjectJSON
89
from braspag_sdk.apps.payments.data import MerchantCredentials
910

1011

@@ -27,7 +28,7 @@ def send_request(self, method, uri, data=None, params=None):
2728

2829
if not body:
2930
headers['Content-Length'] = '0'
30-
elif not isinstance(data, str):
31+
elif isinstance(data, ObjectJSON):
3132
body = body.toJSON()
3233

3334
if 'Content-Type' not in headers:

0 commit comments

Comments
 (0)