Update response.py
fix status code not propagating from response.stream to response.StreamingHTTPResponse
This commit is contained in:
parent
7da4596ef8
commit
9c15982299
|
@ -331,7 +331,7 @@ def stream(
|
||||||
:param headers: Custom Headers.
|
:param headers: Custom Headers.
|
||||||
"""
|
"""
|
||||||
return StreamingHTTPResponse(
|
return StreamingHTTPResponse(
|
||||||
streaming_fn, headers=headers, content_type=content_type, status=200)
|
streaming_fn, headers=headers, content_type=content_type, status=status)
|
||||||
|
|
||||||
|
|
||||||
def redirect(to, headers=None, status=302,
|
def redirect(to, headers=None, status=302,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user