fix handling of string/empty responses

This commit is contained in:
zadam 2021-10-07 22:14:23 +02:00
parent 24a45b03f5
commit 824f5dbaac

View File

@ -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;
}