]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
fix weird bug that cropped up every now and then
authorKevin McCarthy <me@kevinmccarthy.org>
Thu, 31 May 2012 07:34:42 +0000 (21:34 -1000)
committerKevin McCarthy <me@kevinmccarthy.org>
Thu, 31 May 2012 07:34:42 +0000 (21:34 -1000)
vcr/stubs.py

index b19c70046931e687da0ee01e490fde2cdd705115..69fe8e4865d3e1e529b6f53f75c8d06141d3193f 100644 (file)
@@ -51,7 +51,7 @@ class VCRHTTPConnection(HTTPConnection):
             'body': {'string': response.read()},
         })
         self._save_cassette()
-        return response
+        return VCRHTTPResponse(self._cassette[0]['response'])
 
 
 class VCRHTTPSConnection(VCRHTTPConnection):