mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Use content-type text/plain for errors
This commit is contained in:
@@ -26,7 +26,7 @@ export class ExpressHttpServer {
|
||||
} catch (error) {
|
||||
const errMsg = `${error.name}: ${error.message}\n${error.stack}`;
|
||||
process.stderr.write(errMsg);
|
||||
response.status(500).send(errMsg);
|
||||
response.status(500).contentType('text/plain').send(errMsg);
|
||||
}
|
||||
});
|
||||
return app.listen(port);
|
||||
|
||||
Reference in New Issue
Block a user