mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Set content type to text/html for 500 exceptions (#616)
This commit is contained in:
parent
14aabb8907
commit
64733c10e0
2 changed files with 25 additions and 0 deletions
|
@ -22,6 +22,7 @@ def render_404
|
|||
end
|
||||
|
||||
def render_500(context, exception, verbosity)
|
||||
context.response.content_type = "text/html"
|
||||
context.response.status_code = 500
|
||||
|
||||
template = if verbosity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue