Skip to content

Commit

Permalink
- Releasing 1.23.1
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-gallagher committed Nov 27, 2024
1 parent e2388c2 commit 38b171b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions client_encryption/api_encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion client_encryption/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = "1.23.0"
__version__ = "1.23.1"

0 comments on commit 38b171b

Please sign in to comment.