Skip to content

Commit

Permalink
Merge pull request #147 from intezer/fix/request-body
Browse files Browse the repository at this point in the history
fix: sending data in the body of the request
  • Loading branch information
davidt99 authored Oct 9, 2024
2 parents 4766c64 + 5659d26 commit 710defa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion intezer_sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.21.5'
__version__ = '1.21.6'
2 changes: 1 addition & 1 deletion intezer_sdk/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 710defa

Please sign in to comment.