We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from httpretty import HTTPretty import requests with HTTPretty.record("image.json", allow_net_connect=True): requests.get("https://httpbin.org/image/jpeg")
This raises UnicodeDecodeError because the record method is always trying to decode the response body.
UnicodeDecodeError
https://github.com/gabrielfalcao/HTTPretty/blob/main/httpretty/core.py#L1540
I assume the same thing will happen if I try to record a POST request with binary data because of:
https://github.com/gabrielfalcao/HTTPretty/blob/main/httpretty/core.py#L1535
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This raises
UnicodeDecodeError
because the record method is always trying to decode the response body.https://github.com/gabrielfalcao/HTTPretty/blob/main/httpretty/core.py#L1540
I assume the same thing will happen if I try to record a POST request with binary data because of:
https://github.com/gabrielfalcao/HTTPretty/blob/main/httpretty/core.py#L1535
The text was updated successfully, but these errors were encountered: