From 636595c3d4222e4ea8676c0d09d904a92d80d773 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 17 Jan 2020 21:52:50 +0100 Subject: unicode: Send API result with correct Content-Type --- modules/unicode/unicode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/unicode/unicode.js b/modules/unicode/unicode.js index 3221cb9..d3e7fb9 100644 --- a/modules/unicode/unicode.js +++ b/modules/unicode/unicode.js @@ -118,9 +118,9 @@ module.exports = function (app, io, moddir) { chars.push(lookupCode(codepoint)); } - res.end(JSON.stringify({ + res.json({ chars: chars, search: searchDescription(req.params.query), - })); + }); }); }; -- cgit v1.2.3-70-g09d2