Merge pull request #576 from matuusu/master

fix http status code not propagating in response
This commit is contained in:
Raphael Deem 2017-03-24 19:23:20 -07:00 committed by GitHub
commit df9884de3c

View File

@ -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,