From 9c159822993fce24472ed2d41335f70a31b95901 Mon Sep 17 00:00:00 2001 From: matuusu Date: Wed, 22 Mar 2017 12:40:40 +0100 Subject: [PATCH] Update response.py fix status code not propagating from response.stream to response.StreamingHTTPResponse --- sanic/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/response.py b/sanic/response.py index c129884f..38cd68db 100644 --- a/sanic/response.py +++ b/sanic/response.py @@ -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,