diff --git a/client_encryption/api_encryption.py b/client_encryption/api_encryption.py index 6a44650..a4e1462 100644 --- a/client_encryption/api_encryption.py +++ b/client_encryption/api_encryption.py @@ -52,9 +52,6 @@ def field_encryption(self, func): @wraps(func) def call_api_function(*args, **kwargs): """Wrap call_api and add field encryption layer to it.""" - - check_type = inspect.signature(func.__self__.call_api).parameters.get("_check_type") is not None - in_body = kwargs.get("body", None) in_headers = kwargs.get("headers", None) @@ -63,10 +60,7 @@ def call_api_function(*args, **kwargs): response = func(*args, **kwargs) - if check_type: - response.data = self._decrypt_payload(response.getheaders(), response.data) - else: - response._body = self._decrypt_payload(response.getheaders(), response.data) + response.data = self._decrypt_payload(response.getheaders(), response.data) return response diff --git a/client_encryption/version.py b/client_encryption/version.py index ca00b6c..a3a7d66 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.0" +__version__ = "1.23.1"