From c82c719f9327fbeeac147c10507897216936cac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionu=C8=9B=20Ar=C8=9B=C4=83ri=C8=99i?= Date: Tue, 17 Apr 2012 18:27:38 +0300 Subject: [PATCH] return the full response from FakeAppObject Fixes bug 984042 Change-Id: I18a6eac497b24338af4d82a568484b0fc9d97382 --- AUTHORS | 1 + test/unit/common/middleware/test_swift3.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index ea34009cb1..fab4471f9b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -17,6 +17,7 @@ Contributors ------------ Jesse Andrews (anotherjesse@gmail.com) Joe Arnold (joe@swiftstack.com) +Ionuț Arțăriși (iartarisi@suse.cz) Darrell Bishop (darrell@swiftstack.com) James E. Blair (james.blair@rackspace.com) Chmouel Boudjnah (chmouel@chmouel.com) diff --git a/test/unit/common/middleware/test_swift3.py b/test/unit/common/middleware/test_swift3.py index 4e82366648..079f2da183 100644 --- a/test/unit/common/middleware/test_swift3.py +++ b/test/unit/common/middleware/test_swift3.py @@ -134,8 +134,7 @@ class FakeAppObject(FakeApp): if 'HTTP_RANGE' in env: resp = Response(body=self.object_body, conditional_response=True) - resp_iter = iter(resp(env, start_response)) - return resp_iter.next() + return resp(env, start_response) start_response(Response().status, self.response_headers.items()) if env['REQUEST_METHOD'] == 'GET':