Skip to content

Commit 3bc8f41

Browse files
author
Two Dev
committed
chore: fix response
1 parent 460eea2 commit 3bc8f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tls_requests/models/response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def from_tls_response(
237237
) -> "Response":
238238
def _parse_response_body(value: Optional[str]) -> bytes:
239239
if value:
240-
if is_byte_response:
240+
if is_byte_response and response.status > 0:
241241
try:
242242
value = b64decode(value.split(",")[-1])
243243
return value

0 commit comments

Comments
 (0)