Fix mimetype for javascript, #1559

This commit is contained in:
ziajka committed 2019-03-22 08:35:27 +01:00
1 parent cbb6eccad8
commit 3f4bdfef11
2 files changed
+8 -1

No files matched your search

+1
View File
@@ -118,6 +118,7 @@ class Response(aiohttp.web.Response):
"""
Stream a file as a response
"""
encoding = None
if not os.path.exists(path):
raise aiohttp.web.HTTPNotFound()