Ghost/core/server/web
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
..
admin Moved admin redirect middleware to named file 2021-11-25 14:29:17 +00:00
api Merged our two maintenance middleware into one 2021-11-24 11:27:18 +00:00
members Merged our two maintenance middleware into one 2021-11-24 11:27:18 +00:00
oauth Merged our two maintenance middleware into one 2021-11-24 11:27:18 +00:00
parent Renamed withBackend/withFrotned to backend/frontend 2021-11-22 21:56:32 +13:00
shared Removed unnecessary BasicErrorRenderer 2021-11-29 15:40:55 +00:00
index.js Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30
well-known.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00