fixing response iterator in swift3 test
Change-Id: I6e58eed72aa3d1835b1a9ef99014d27a7dfd810e
This commit is contained in:
parent
848b3f0544
commit
f26d2e5f99
@ -134,8 +134,8 @@ class FakeAppObject(FakeApp):
|
|||||||
if 'HTTP_RANGE' in env:
|
if 'HTTP_RANGE' in env:
|
||||||
resp = Response(body=self.object_body,
|
resp = Response(body=self.object_body,
|
||||||
conditional_response=True)
|
conditional_response=True)
|
||||||
iter = resp(env, start_response)
|
resp_iter = iter(resp(env, start_response))
|
||||||
return iter.pop()
|
return resp_iter.next()
|
||||||
start_response(Response().status,
|
start_response(Response().status,
|
||||||
self.response_headers.items())
|
self.response_headers.items())
|
||||||
if env['REQUEST_METHOD'] == 'GET':
|
if env['REQUEST_METHOD'] == 'GET':
|
||||||
|
Loading…
Reference in New Issue
Block a user