From: Kevin McCarthy Date: Thu, 31 May 2012 07:34:42 +0000 (-1000) Subject: fix weird bug that cropped up every now and then X-Git-Tag: v0.1.0~112 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ad365bbc87add7f745fee5af6108adc3f03ca0c6;p=vcrpy.git fix weird bug that cropped up every now and then --- diff --git a/vcr/stubs.py b/vcr/stubs.py index b19c700..69fe8e4 100644 --- a/vcr/stubs.py +++ b/vcr/stubs.py @@ -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):