1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Ignore utf8 decoding errors in content

This commit is contained in:
Gintaras Jak
2020-07-16 16:57:36 +03:00
committed by Kevin McCarthy
parent 641d9e5d49
commit 5afa8f703a

View File

@@ -29,7 +29,7 @@ def _to_serialized_response(httpx_reponse):
"status_code": httpx_reponse.status_code,
"http_version": httpx_reponse.http_version,
"headers": _transform_headers(httpx_reponse),
"content": httpx_reponse.content.decode("utf-8"),
"content": httpx_reponse.content.decode("utf-8", "ignore"),
}