mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-31 14:58:25 -04:00
fix: Use w3lib to improve the encoding extraction
This commit is contained in:
parent
0965031d8f
commit
949f78aa65
5 changed files with 787 additions and 11 deletions
tests/mock_server
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue