mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-08 07:36:31 +02:00
fix: Fix mercury extractor test
This commit is contained in:
@@ -10,6 +10,12 @@ def index():
|
||||
|
||||
@route("/static/<filename>")
|
||||
def static_path(filename):
|
||||
template_path = abspath(getcwd()) / Path("tests/mock_server/templates")
|
||||
response = static_file(filename, root=template_path)
|
||||
return response
|
||||
|
||||
@route("/static_no_content_type/<filename>")
|
||||
def static_no_content_type(filename):
|
||||
template_path = abspath(getcwd()) / Path("tests/mock_server/templates")
|
||||
response = static_file(filename, root=template_path)
|
||||
response.set_header("Content-Type", "")
|
||||
|
Reference in New Issue
Block a user