bug fix for response data

This commit is contained in:
mine.dogan 2016-07-12 17:29:18 +03:00
parent e1da6e4849
commit b03c1f3b8c
1 changed files with 2 additions and 2 deletions

View File

@ -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