From 9d0e0a4efa592860add60987064e55ca0c8adeff Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 24 Jan 2019 18:42:29 +0100 Subject: [PATCH] log font path to make sure it's working --- server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server.js b/server.js index 75cd065d1..4523ffc67 100644 --- a/server.js +++ b/server.js @@ -215,6 +215,7 @@ var FONT_NAME_MAP = {}; app.use("/common/onlyoffice/fonts/odttf/:name", function (req, res) { var name = req.params.name.replace(/\.js$/, '').toLowerCase(); var path = Path.join('./www/common/onlyoffice/fonts/odttf/', name); + console.log(path); Fs.createReadStream(path).pipe(res).on('error', function (e) { console.error(e); res.status(404).send('No such font');