Merge branch '404_response' of https://github.com/mig5/onionshare into mig5-404_response

This commit is contained in:
Micah Lee 2017-11-30 18:01:18 -08:00
commit e7a2b0a277
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