mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 08:49:30 -05:00
Merge branch '404_response' of https://github.com/mig5/onionshare into mig5-404_response
This commit is contained in:
commit
e7a2b0a277
@ -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 New Issue
Block a user