fixing response iterator in swift3 test

Change-Id: I6e58eed72aa3d1835b1a9ef99014d27a7dfd810e
This commit is contained in:
Scott Simpson 2012-04-04 10:44:43 -05:00
parent 848b3f0544
commit f26d2e5f99

View File

@ -134,8 +134,8 @@ class FakeAppObject(FakeApp):
if 'HTTP_RANGE' in env:
resp = Response(body=self.object_body,
conditional_response=True)
iter = resp(env, start_response)
return iter.pop()
resp_iter = iter(resp(env, start_response))
return resp_iter.next()
start_response(Response().status,
self.response_headers.items())
if env['REQUEST_METHOD'] == 'GET':