merge: from piston/production

This commit is contained in:
Endercheif 2023-03-08 18:14:37 -08:00
commit 6a90aa3bc2
No known key found for this signature in database
GPG key ID: 7767459A0C8BEE00
7 changed files with 6 additions and 7 deletions

View file

@ -169,7 +169,7 @@ router.use((req, res, next) => {
return next();
}
if (!req.headers['content-type'].startsWith('application/json')) {
if (!req.headers['content-type']?.startsWith('application/json')) {
return res.status(415).send({
message: 'requests must be of type application/json',
});