Merge "return the full response from FakeAppObject"
This commit is contained in:
commit
e48d01a7a7
1
AUTHORS
1
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)
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user