mirror of
https://github.com/onionshare/onionshare.git
synced 2025-04-11 18:49:07 -04:00
Fix HTTP return code for custom 500 internal server error handler
This commit is contained in:
parent
dbdb04a3bf
commit
d1cbe2faf6
@ -328,7 +328,7 @@ class Web:
|
||||
|
||||
self.add_request(Web.REQUEST_OTHER, request.path)
|
||||
r = make_response(
|
||||
render_template("500.html", static_url_path=self.static_url_path), 405
|
||||
render_template("500.html", static_url_path=self.static_url_path), 500
|
||||
)
|
||||
return self.add_security_headers(r)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user