]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
Create headers field in VCRHTTPResponse. Fixes #117.
authorRodrigo Taboada <rodrigo.taboada@myfreecomm.com.br>
Fri, 24 Oct 2014 17:42:30 +0000 (15:42 -0200)
committerRodrigo Taboada <rodrigo.taboada@myfreecomm.com.br>
Fri, 24 Oct 2014 18:37:12 +0000 (16:37 -0200)
vcr/stubs/__init__.py

index 4e534f4790589dfe0b5713492672a002fbf1285b..8dd40d334e3fb846c70c47f2875e5798258350c6 100644 (file)
@@ -76,7 +76,7 @@ class VCRHTTPResponse(HTTPResponse):
         self._closed = False
 
         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