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

Fix VCRHTTPResponse for requests.cookies.extract_cookies_to_jar

This commit is contained in:
Sebastian Pipping
2023-05-16 16:49:31 +02:00
committed by Kevin McCarthy
parent 88c0039089
commit 89f2005250

View File

@@ -68,6 +68,7 @@ class VCRHTTPResponse(HTTPResponse):
self.version = None
self._content = BytesIO(self.recorded_response["body"]["string"])
self._closed = False
self._original_response = self # for requests.session.Session cookie extraction
headers = self.recorded_response["headers"]
# Since we are loading a response that has already been serialized, our