fix: Use w3lib to improve the encoding extraction

This commit is contained in:
Cristian 2020-07-22 10:24:08 -05:00
parent 0965031d8f
commit 949f78aa65
5 changed files with 787 additions and 11 deletions
tests/mock_server

View file

@ -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)