1
0
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:
Rodrigo Taboada
2014-10-24 15:42:30 -02:00
parent 6e049ba7a1
commit a71c15f398

View File

@@ -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