From e547cca113695e52012d50f4ecf9b20c3a9acf0f Mon Sep 17 00:00:00 2001 From: tycrek Date: Mon, 5 Apr 2021 20:37:01 -0600 Subject: [PATCH] prod test yay oof --- ass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ass.js b/ass.js index e79d38d..ffd4cd2 100755 --- a/ass.js +++ b/ass.js @@ -63,7 +63,7 @@ function startup() { // View file app.get('/:resourceId', (req, res) => { let resourceId = req.params.resourceId; - if (data[resourceId]) res.type(data[resourceId].mimetype).send(fs.readFileSync(path(data[resourceId].path)));// .sendFile(path(data[resourceId].path)); + if (data[resourceId]) res.header('Accept-Ranges', 'bytes').type(data[resourceId].mimetype).send(fs.readFileSync(path(data[resourceId].path)));// .sendFile(path(data[resourceId].path)); else res.sendStatus(404); });