pull/12/head
tycrek 3 years ago
parent 8135b3a46d
commit 9a1e1d7b00
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -69,7 +69,7 @@ function startup() {
let fileData = fs.readFileSync(path(data[resourceId].path));
if (data[resourceId])
res/* .header('Accept-Ranges', 'bytes').header('Content-Length', fileData.byteLength).type(data[resourceId].mimetype).send(fileData); */.sendFile(path(data[resourceId].path));
res.header('Accept-Ranges', 'bytes').header('Content-Length', fileData.byteLength).type(data[resourceId].mimetype).send(fileData);
else
res.sendStatus(404);
});

Loading…
Cancel
Save