From c42731a55ca4ce095348353204639e36e714a9be Mon Sep 17 00:00:00 2001 From: Amit Garu Date: Tue, 19 Mar 2019 18:00:28 +0545 Subject: [PATCH] await keyword missing fix in response doc (#1520) --- docs/sanic/response.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sanic/response.md b/docs/sanic/response.md index f322f8c8..47901c05 100644 --- a/docs/sanic/response.md +++ b/docs/sanic/response.md @@ -55,8 +55,8 @@ from sanic import response @app.route("/streaming") async def index(request): async def streaming_fn(response): - response.write('foo') - response.write('bar') + await response.write('foo') + await response.write('bar') return response.stream(streaming_fn, content_type='text/plain') ```