fix handling of string/empty responses

pull/255/head
zadam 2021-10-07 22:14:23 +07:00
parent 24a45b03f5
commit 824f5dbaac
1 changed files with 1 additions and 1 deletions

@ -107,7 +107,7 @@ function apiResultHandler(req, res, result) {
function send(res, statusCode, response) {
if (typeof response === 'string') {
res.status(statusCode, response);
res.status(statusCode).send(response);
return response.length;
}