Skip to content

Commit 38b171b

Browse files
- Releasing 1.23.1
1 parent e2388c2 commit 38b171b

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

client_encryption/api_encryption.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ def field_encryption(self, func):
5252
@wraps(func)
5353
def call_api_function(*args, **kwargs):
5454
"""Wrap call_api and add field encryption layer to it."""
55-
56-
check_type = inspect.signature(func.__self__.call_api).parameters.get("_check_type") is not None
57-
5855
in_body = kwargs.get("body", None)
5956

6057
in_headers = kwargs.get("headers", None)
@@ -63,10 +60,7 @@ def call_api_function(*args, **kwargs):
6360

6461
response = func(*args, **kwargs)
6562

66-
if check_type:
67-
response.data = self._decrypt_payload(response.getheaders(), response.data)
68-
else:
69-
response._body = self._decrypt_payload(response.getheaders(), response.data)
63+
response.data = self._decrypt_payload(response.getheaders(), response.data)
7064

7165
return response
7266

client_encryption/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
__version__ = "1.23.0"
3+
__version__ = "1.23.1"

0 commit comments

Comments
 (0)