From bb46c2de99535b183b03fd3e499c258f13f469a8 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Thu, 9 Nov 2017 17:51:34 +1100 Subject: [PATCH] send a HTTP 404 code instead of 200, on 404 pages --- onionshare/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionshare/web.py b/onionshare/web.py index aec86bf4..59febcfb 100644 --- a/onionshare/web.py +++ b/onionshare/web.py @@ -331,7 +331,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