From 7d0effbd2065e7352438e0c0679987a4e728969f Mon Sep 17 00:00:00 2001 From: tycrek Date: Mon, 5 Apr 2021 20:24:27 -0600 Subject: [PATCH] test --- ass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ass.js b/ass.js index bab2545..e79d38d 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).sendFile(path(data[resourceId].path)); + if (data[resourceId]) res.type(data[resourceId].mimetype).send(fs.readFileSync(path(data[resourceId].path)));// .sendFile(path(data[resourceId].path)); else res.sendStatus(404); });