Ghost/core/server/web/shared/middleware
Hannah Wolfe 8c93bdff41
Removed unnecessary BasicErrorRenderer
refs: 4474ca1a1d
refs: 0799f02e80

The BasicErrorRenderer was created as a fallback for when we needed to not render templates, which is
chiefly when we're trying to render a 404 for an image. Using a template puts us at risk of an infinite 404 loop
if the missing image is referenced in the 404 template.

As of 0799f02e, the HTMLErrorRenderer no longer uses templates - instead we serve a very simple HTML page.
This can be used instead of the BasicErrorRenderer, as it results in a properly formatted error.
Even when sending responses in plain text, the content type is returned as HTML and therefore having an
unformatted error makes no sense - if we really need a non-html format I guess there should be no body at all.
2021-11-29 15:40:55 +00:00
..
api Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
brute.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
cache-control.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
error-handler.js Removed unnecessary BasicErrorRenderer 2021-11-29 15:40:55 +00:00
index.js Merged our two maintenance middleware into one 2021-11-24 11:27:18 +00:00
pretty-urls.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
uncapitalise.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
url-redirects.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00