Update response.py

fix status code not propagating from response.stream to response.StreamingHTTPResponse
This commit is contained in:
matuusu 2017-03-22 12:40:40 +01:00 committed by GitHub
parent 7da4596ef8
commit 9c15982299

View File

@ -331,7 +331,7 @@ def stream(
:param headers: Custom Headers.
"""
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,