From 38b171b2b19721d4057b2ba9df4a52ac9b99eb14 Mon Sep 17 00:00:00 2001 From: E069279 Date: Wed, 27 Nov 2024 10:12:59 +0000 Subject: [PATCH] - Releasing 1.23.1 --- client_encryption/api_encryption.py | 8 +------- client_encryption/version.py | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) 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"