File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ def process_request_body(self, raw_request_body):
77
77
req_transfer_encoding = 'base64'
78
78
else :
79
79
if 'body' in raw_request_body and raw_request_body ['body' ] and isinstance (raw_request_body ['body' ], str ):
80
- req_body = json .dumps ( json . loads (raw_request_body ['body' ]) )
80
+ req_body = json .loads (raw_request_body ['body' ])
81
81
else :
82
- req_body = json . dumps ( raw_request_body ['body' ])
82
+ req_body = raw_request_body ['body' ]
83
83
req_transfer_encoding = 'json'
84
84
except Exception as e :
85
85
if self .DEBUG :
@@ -97,9 +97,9 @@ def process_response_body(self, raw_response_body):
97
97
resp_transfer_encoding = 'base64'
98
98
else :
99
99
if 'body' in raw_response_body and raw_response_body ['body' ] and isinstance (raw_response_body ['body' ], str ):
100
- resp_body = json .dumps ( json . loads (raw_response_body ['body' ]) )
100
+ resp_body = json .loads (raw_response_body ['body' ])
101
101
else :
102
- resp_body = json . dumps ( raw_response_body ['body' ])
102
+ resp_body = raw_response_body ['body' ]
103
103
resp_transfer_encoding = 'json'
104
104
except Exception as e :
105
105
if self .DEBUG :
You can’t perform that action at this time.
0 commit comments