mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 21:42:21 +03:00
bug fix for response data
This commit is contained in:
parent
e1da6e4849
commit
b03c1f3b8c
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ class Messaging(object):
|
||||||
data['responseCode'] = response.get_code()
|
data['responseCode'] = response.get_code()
|
||||||
data['responseMessage'] = response.get_message()
|
data['responseMessage'] = response.get_message()
|
||||||
response_data = None
|
response_data = None
|
||||||
if data['responseData'] is not None:
|
if response.get_data() is not None:
|
||||||
response_data = json.loads(str(response.get_data()))
|
response_data = json.loads(str(response.get_data()))
|
||||||
data['responseData'] = response_data
|
data['responseData'] = response_data
|
||||||
data['contentType'] = response.get_content_type()
|
data['contentType'] = response.get_content_type()
|
||||||
|
@ -54,7 +54,7 @@ class Messaging(object):
|
||||||
data['responseMessage'] = response.get_message()
|
data['responseMessage'] = response.get_message()
|
||||||
|
|
||||||
response_data = None
|
response_data = None
|
||||||
if data['responseData'] is not None:
|
if response.get_data() is not None:
|
||||||
response_data = json.loads(str(response.get_data()))
|
response_data = json.loads(str(response.get_data()))
|
||||||
|
|
||||||
data['responseData'] = response_data
|
data['responseData'] = response_data
|
||||||
|
|
Loading…
Reference in a new issue