Set content type to text/html for 500 exceptions (#616)

This commit is contained in:
Serdar Dogruyol - Sedo セド 2021-09-01 18:26:38 +03:00 committed by GitHub
parent 14aabb8907
commit 64733c10e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View file

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