Fix line length again...
This commit is contained in:
parent
04a0774ee5
commit
f0a55b5cbb
|
@ -331,7 +331,11 @@ def stream(
|
||||||
:param headers: Custom Headers.
|
:param headers: Custom Headers.
|
||||||
"""
|
"""
|
||||||
return StreamingHTTPResponse(
|
return StreamingHTTPResponse(
|
||||||
streaming_fn, headers=headers, content_type=content_type, status=status)
|
streaming_fn,
|
||||||
|
headers=headers,
|
||||||
|
content_type=content_type,
|
||||||
|
status=status
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def redirect(to, headers=None, status=302,
|
def redirect(to, headers=None, status=302,
|
||||||
|
|
|
@ -88,4 +88,7 @@ def test_chained_redirect(redirect_app):
|
||||||
assert request.url.endswith('/1')
|
assert request.url.endswith('/1')
|
||||||
assert response.status == 200
|
assert response.status == 200
|
||||||
assert response.text == 'OK'
|
assert response.text == 'OK'
|
||||||
assert response.url.endswith('/3')
|
try:
|
||||||
|
assert response.url.endswith('/3')
|
||||||
|
except AttributeError:
|
||||||
|
assert response.url.path.endswith('/3')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user