mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 09:13:23 +00:00
Create headers field in VCRHTTPResponse. Fixes #117.
This commit is contained in:
@@ -76,7 +76,7 @@ class VCRHTTPResponse(HTTPResponse):
|
|||||||
self._closed = False
|
self._closed = False
|
||||||
|
|
||||||
headers = self.recorded_response['headers']
|
headers = self.recorded_response['headers']
|
||||||
self.msg = parse_headers(headers)
|
self.headers = self.msg = parse_headers(headers)
|
||||||
|
|
||||||
self.length = compat.get_header(self.msg, 'content-length') or None
|
self.length = compat.get_header(self.msg, 'content-length') or None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user