You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…yte responses (e.g., images) by decoding base64 data)
This PR fixes an issue where binary responses (such as images) were not handled correctly in `python-tls-client-async`. Previously, the response body was treated as plain text, leading to corrupted data when downloading binary content like PNGs or PDFs.
The root cause was that the underlying Go library returns binary responses encoded in base64 if `isByteResponse=true`, but the Python code did not decode this properly.
This patch:
- Modifies `response.py` to split and decode base64-encoded bodies.
- Ensures correct handling of binary responses (e.g., images).
- Sets `"isByteResponse": True` in the session payload for consistency.
Related issues:
- FlorianREGAZ#83
- FlorianREGAZ#119
- FlorianREGAZ#117
- FlorianREGAZ#122
Thanks to @3droj7 for PR.
No description provided.
The text was updated successfully, but these errors were encountered: