From b03c1f3b8c48894b9000d55c8f0a935a3344b875 Mon Sep 17 00:00:00 2001 From: "mine.dogan" Date: Tue, 12 Jul 2016 17:29:18 +0300 Subject: [PATCH] bug fix for response data --- opt/ahenk/base/messaging/Messaging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opt/ahenk/base/messaging/Messaging.py b/opt/ahenk/base/messaging/Messaging.py index 9fc57e1..16e9d7d 100644 --- a/opt/ahenk/base/messaging/Messaging.py +++ b/opt/ahenk/base/messaging/Messaging.py @@ -35,7 +35,7 @@ class Messaging(object): data['responseCode'] = response.get_code() data['responseMessage'] = response.get_message() response_data = None - if data['responseData'] is not None: + if response.get_data() is not None: response_data = json.loads(str(response.get_data())) data['responseData'] = response_data data['contentType'] = response.get_content_type() @@ -54,7 +54,7 @@ class Messaging(object): data['responseMessage'] = response.get_message() response_data = None - if data['responseData'] is not None: + if response.get_data() is not None: response_data = json.loads(str(response.get_data())) data['responseData'] = response_data