From ad365bbc87add7f745fee5af6108adc3f03ca0c6 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Wed, 30 May 2012 21:34:42 -1000 Subject: [PATCH] fix weird bug that cropped up every now and then --- vcr/stubs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):