Fix 204 bugs

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
This commit is contained in:
Alexandre Bodin 2020-05-28 18:32:23 +02:00
parent 9c12820744
commit 7ddfdabcb0

View File

@ -69,7 +69,7 @@ module.exports = strapi =>
// Set body.
const values = await next();
if (!ctx.body) {
if (_.isNil(ctx.body) && !_.isNil(values)) {
ctx.body = values;
}
});