diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/routes/getSchedule.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/routes/getSchedule.js b/src/server/routes/getSchedule.js index 7850918..9c31d66 100644 --- a/src/server/routes/getSchedule.js +++ b/src/server/routes/getSchedule.js @@ -67,7 +67,12 @@ router.get('/:type/:value', function (req, res, next) { return } - const utf8Body = iconv.decode(data.body, 'ISO-8859-1') + let utf8Body = iconv.decode(data.body, 'ISO-8859-1') + + users.forEach(function (user) { + let utf8Body = utf8Body.replace(/oko/g, "test") + }) + res.status(data.statusCode).end(utf8Body) }) }) |