diff --git a/client_encryption/api_encryption.py b/client_encryption/api_encryption.py index a4e1462..9c0a6c2 100644 --- a/client_encryption/api_encryption.py +++ b/client_encryption/api_encryption.py @@ -60,7 +60,7 @@ def call_api_function(*args, **kwargs): response = func(*args, **kwargs) - response.data = self._decrypt_payload(response.getheaders(), response.data) + response.data = self._decrypt_payload(response.getheaders(), response.response.data) return response diff --git a/client_encryption/version.py b/client_encryption/version.py index a3a7d66..66eee77 100644 --- a/client_encryption/version.py +++ b/client_encryption/version.py @@ -1,3 +1,3 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -__version__ = "1.23.1" +__version__ = "1.23.2" diff --git a/tests/utils/api_encryption_test_utils.py b/tests/utils/api_encryption_test_utils.py index 9eb4fe8..0a22b06 100644 --- a/tests/utils/api_encryption_test_utils.py +++ b/tests/utils/api_encryption_test_utils.py @@ -105,9 +105,9 @@ def request(self, method, url, query_params=None, headers=None, response.getheaders = mock_headers if method in ["GET", "POST", "PUT"]: - response.data = json_resp + response.response.data = json_resp else: - response.data = "OK" if check == 0 else "KO" + response.response.data = "OK" if check == 0 else "KO" return response