diff --git a/site/src/server.js b/site/src/server.js index c7cf93c3b5..6990d94265 100644 --- a/site/src/server.js +++ b/site/src/server.js @@ -10,7 +10,9 @@ const app = polka({ onError: (err, req, res) => { const error = err.message || err; const code = err.code || err.status || 500; - res.headersSent || send(res, code, { error }); + res.headersSent || send(res, code, { error }, { + 'content-type': 'text/plain' + }); } });