mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 10:42:58 -03:00
send a HTTP 404 code instead of 200, on 404 pages
This commit is contained in:
parent
4387589b4f
commit
bb46c2de99
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue