From ceaa36c1ecfb4f4e7dfb8925b0a4c7634ef03d46 Mon Sep 17 00:00:00 2001 From: pcdinh Date: Tue, 25 Oct 2016 18:25:28 +0700 Subject: [PATCH] Fixed: Writing request failed, connection closed 'coroutine' object has no attribute 'output' --- sanic/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/response.py b/sanic/response.py index 88925035..ba28109a 100644 --- a/sanic/response.py +++ b/sanic/response.py @@ -153,7 +153,7 @@ def html(body, status=200, headers=None): content_type="text/html; charset=utf-8") -async def file(location, mime_type=None, headers=None, force_download=False): +def file(location, mime_type=None, headers=None, force_download=False): """ Produces a response that serves file content. :param location: Absolute file path