mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
fixing stupid mistake
This commit is contained in:
parent
1401d848b2
commit
66019e768b
@ -127,7 +127,7 @@ if (fs.existsSync('./.env')) {
|
|||||||
dist = req.app.get(`dist~${uuid}`);
|
dist = req.app.get(`dist~${uuid}`);
|
||||||
|
|
||||||
if (!dist || !dist.files.hasOwnProperty(file)) {
|
if (!dist || !dist.files.hasOwnProperty(file)) {
|
||||||
res.sendStatus(404);
|
return res.sendStatus(404);
|
||||||
}
|
}
|
||||||
|
|
||||||
res.setHeader('Content-Type', lookup(file));
|
res.setHeader('Content-Type', lookup(file));
|
||||||
@ -142,7 +142,7 @@ if (fs.existsSync('./.env')) {
|
|||||||
dist = req.app.get(`dist~${uuid}`);
|
dist = req.app.get(`dist~${uuid}`);
|
||||||
|
|
||||||
if (!dist || !dist.files.hasOwnProperty(file)) {
|
if (!dist || !dist.files.hasOwnProperty(file)) {
|
||||||
res.sendStatus(404);
|
return res.sendStatus(404);
|
||||||
}
|
}
|
||||||
|
|
||||||
res.setHeader('Content-Type', lookup(file));
|
res.setHeader('Content-Type', lookup(file));
|
||||||
|
Loading…
Reference in New Issue
Block a user