mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 17:15:35 +00:00
Ignore utf8 decoding errors in content
This commit is contained in:
committed by
Kevin McCarthy
parent
641d9e5d49
commit
5afa8f703a
@@ -29,7 +29,7 @@ def _to_serialized_response(httpx_reponse):
|
|||||||
"status_code": httpx_reponse.status_code,
|
"status_code": httpx_reponse.status_code,
|
||||||
"http_version": httpx_reponse.http_version,
|
"http_version": httpx_reponse.http_version,
|
||||||
"headers": _transform_headers(httpx_reponse),
|
"headers": _transform_headers(httpx_reponse),
|
||||||
"content": httpx_reponse.content.decode("utf-8"),
|
"content": httpx_reponse.content.decode("utf-8", "ignore"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user