Merge branch 'mig5-404_response'

This commit is contained in:
Micah Lee 2017-11-30 18:01:28 -08:00
commit 3f57199b2e

View File

@ -351,7 +351,7 @@ def page_not_found(e):
force_shutdown()
print(strings._('error_rate_limit'))
r = make_response(render_template_string(open(common.get_resource_path('html/404.html')).read()))
r = make_response(render_template_string(open(common.get_resource_path('html/404.html')).read()), 404)
for header, value in security_headers:
r.headers.set(header, value)
return r