Fix HTTP return code for custom 500 internal server error handler

This commit is contained in:
Miguel Jacq 2021-05-10 15:57:23 +10:00
parent 30f53267df
commit 97922d33d0
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -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)