mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix HTTP static file singular (#4118)
This commit is contained in:
parent
edeb31d74e
commit
3cc4fdaa34
@ -328,8 +328,8 @@ class HomeAssistantWSGI(object):
|
|||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def serve_file(request):
|
def serve_file(request):
|
||||||
"""Redirect to location."""
|
"""Redirect to location."""
|
||||||
yield from _GZIP_FILE_SENDER.send(request, filepath)
|
res = yield from _GZIP_FILE_SENDER.send(request, filepath)
|
||||||
return
|
return res
|
||||||
|
|
||||||
# aiohttp supports regex matching for variables. Using that as temp
|
# aiohttp supports regex matching for variables. Using that as temp
|
||||||
# to work around cache busting MD5.
|
# to work around cache busting MD5.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user