Skip to content

Commit 9c23f02

Browse files
authored
Merge pull request #11 from SIMBAChain/delete_supported
Delete supported
2 parents 7ef3cf7 + 0a9a864 commit 9c23f02

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

libsimba/simba_request.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,10 @@ def _json_response_or_raise(self, response: Response) -> dict:
637637
if self._response.status_code:
638638
self._status = self._response.status_code
639639

640+
# response.json does not properly handle DELETE, when response.content is not present
641+
if not response.content:
642+
response._content = b'{}'
643+
640644
json_response = response.json()
641645
logger.info(
642646
self.log_me(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "libsimba"
3-
version = "1.6.0"
3+
version = "1.6.1"
44
description = "libsimba is a library simplifying the use of SIMBAChain Blocks APIs."
55
authors = [
66
"SIMBA Chain Inc."

0 commit comments

Comments
 (0)