Revert "Fixed: Writing request failed, connection closed 'coroutine' object has"
This commit is contained in:
parent
ceaa36c1ec
commit
70aa22ba51
@ -153,7 +153,7 @@ def html(body, status=200, headers=None):
|
|||||||
content_type="text/html; charset=utf-8")
|
content_type="text/html; charset=utf-8")
|
||||||
|
|
||||||
|
|
||||||
def file(location, mime_type=None, headers=None, force_download=False):
|
async def file(location, mime_type=None, headers=None, force_download=False):
|
||||||
"""
|
"""
|
||||||
Produces a response that serves file content.
|
Produces a response that serves file content.
|
||||||
:param location: Absolute file path
|
:param location: Absolute file path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user