mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-09 03:26:27 +02:00
merge: from piston/production
This commit is contained in:
commit
6a90aa3bc2
7 changed files with 6 additions and 7 deletions
|
@ -11,7 +11,7 @@
|
|||
"dependencies": {
|
||||
"body-parser": "^1.19.0",
|
||||
"chownr": "^2.0.0",
|
||||
"express": "^4.17.1",
|
||||
"express": "^4.17.3",
|
||||
"express-ws": "^5.0.2",
|
||||
"is-docker": "^2.1.1",
|
||||
"logplease": "github:Endercheif/logplease#feature/quality",
|
||||
|
|
2
api/pnpm-lock.yaml
generated
2
api/pnpm-lock.yaml
generated
|
@ -5,7 +5,7 @@ specifiers:
|
|||
'@types/node-fetch': ^2.6.2
|
||||
body-parser: ^1.19.0
|
||||
chownr: ^2.0.0
|
||||
express: ^4.17.1
|
||||
express: ^4.17.3
|
||||
express-ws: ^5.0.2
|
||||
is-docker: ^2.1.1
|
||||
logplease: github:Endercheif/logplease#feature/quality
|
||||
|
|
|
@ -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',
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue