mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-03-25 17:32:23 +10:00
fix: Use w3lib to improve the encoding extraction
This commit is contained in:
@@ -11,7 +11,9 @@ def index():
|
||||
@route("/static/<filename>")
|
||||
def static_path(filename):
|
||||
template_path = abspath(getcwd()) / Path("tests/mock_server/templates")
|
||||
return static_file(filename, root=template_path)
|
||||
response = static_file(filename, root=template_path)
|
||||
response.set_header("Content-Type", "")
|
||||
return response
|
||||
|
||||
def start():
|
||||
run(host='localhost', port=8080)
|
||||
Reference in New Issue
Block a user