Skip to content

Commit 5b53a8f

Browse files
authored
Merge pull request #27 from ardevd/content-type-check-fix
fix: corrected content-type header check.
2 parents f0a5697 + 38fd368 commit 5b53a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dimo/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __call__(self, headers=None, data=None, params=None, **kwargs):
5151
raise HTTPError(status=status or -1, message=str(exc), body=body)
5252

5353
content_type = response.headers.get("Content-Type", "")
54-
if "application/json" in content_type:
54+
if "json" in content_type:
5555
return response.json()
5656

5757
return response.content

0 commit comments

Comments
 (0)