Merge branch 'mig5-404_response'

This commit is contained in:
Micah Lee 2017-11-30 18:01:28 -08:00
commit 2a8a60a50b
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

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