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):
7777 req_transfer_encoding = 'base64'
7878 else :
7979 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' ])
8181 else :
82- req_body = json . dumps ( raw_request_body ['body' ])
82+ req_body = raw_request_body ['body' ]
8383 req_transfer_encoding = 'json'
8484 except Exception as e :
8585 if self .DEBUG :
@@ -97,9 +97,9 @@ def process_response_body(self, raw_response_body):
9797 resp_transfer_encoding = 'base64'
9898 else :
9999 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' ])
101101 else :
102- resp_body = json . dumps ( raw_response_body ['body' ])
102+ resp_body = raw_response_body ['body' ]
103103 resp_transfer_encoding = 'json'
104104 except Exception as e :
105105 if self .DEBUG :
You can’t perform that action at this time.
0 commit comments