Fixed: Writing request failed, connection closed 'coroutine' object has

no attribute 'output'
This commit is contained in:
pcdinh 2016-10-25 18:25:28 +07:00
parent 9d00d0c6c6
commit ceaa36c1ec

View File

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