Handle numberic msg.payload in HTTP Response node

pull/911/head
Nick O'Leary 2016-06-17 22:08:58 +01:00
parent 958de21be8
commit b78210e3be
1 changed files with 3 additions and 0 deletions

View File

@ -293,6 +293,9 @@ module.exports = function(RED) {
msg.res._res.set('content-length', len);
}
if (typeof msg.payload === "number") {
msg.payload = ""+msg.payload;
}
msg.res._res.status(statusCode).send(msg.payload);
}
} else {