diff --git a/onionshare/web.py b/onionshare/web.py index 3e02fd95..4ae10221 100644 --- a/onionshare/web.py +++ b/onionshare/web.py @@ -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