Commit e57445b0 authored by Vadym Gidulian's avatar Vadym Gidulian

Added casting of numeric responses to string

parent 2a8bef0f
...@@ -53,7 +53,8 @@ module.exports = { ...@@ -53,7 +53,8 @@ module.exports = {
if (res[IS_EMPTY] || [204, 304].includes(res.statusCode)) response = null; if (res[IS_EMPTY] || [204, 304].includes(res.statusCode)) response = null;
res.status(res.statusCode || 200).send(response); res.status(res.statusCode || 200)
.send((typeof response === 'number') ? String(response) : response);
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment