From 5659d264428337a44421499ad375c9c43de02901 Mon Sep 17 00:00:00 2001 From: davidt99 Date: Tue, 8 Oct 2024 23:35:21 +0300 Subject: [PATCH] fix: sending data in the body of the request --- CHANGES | 4 ++++ intezer_sdk/__init__.py | 2 +- intezer_sdk/api.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 179ce03..595df02 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +1.21.6 +_______ +- Fix sending data in the body of the request + 1.21.5 _______ - Add url and scanned_url to url analyses history filters diff --git a/intezer_sdk/__init__.py b/intezer_sdk/__init__.py index 97e3f85..b93f5dc 100644 --- a/intezer_sdk/__init__.py +++ b/intezer_sdk/__init__.py @@ -1 +1 @@ -__version__ = '1.21.5' +__version__ = '1.21.6' diff --git a/intezer_sdk/api.py b/intezer_sdk/api.py index c269a30..af769a8 100644 --- a/intezer_sdk/api.py +++ b/intezer_sdk/api.py @@ -121,7 +121,7 @@ def _request(self, stream=stream, timeout=timeout_in_seconds or self.timeout_in_seconds ) - elif isinstance(data, bytes): + elif isinstance(data, (bytes, str)): response = self._session.request( method, url,