mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-11 04:02:40 -03:00
Merge branch '404_response' of https://github.com/mig5/onionshare into mig5-404_response
This commit is contained in:
commit
e7a2b0a277
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue