summaryrefslogtreecommitdiff
path: root/modules/unicode
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2020-01-17 21:52:50 +0100
committertomsmeding <tom.smeding@gmail.com>2020-01-17 21:52:50 +0100
commit636595c3d4222e4ea8676c0d09d904a92d80d773 (patch)
treef5968681732f5d9512435fb87c924e66da84cc0f /modules/unicode
parent561dc4ac534dd5f1721c284c278986db0770b266 (diff)
unicode: Send API result with correct Content-Type
Diffstat (limited to 'modules/unicode')
-rw-r--r--modules/unicode/unicode.js4
1 files changed, 2 insertions, 2 deletions
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),
- }));
+ });
});
};