mirror of https://github.com/node-red/node-red.git
Handle numberic msg.payload in HTTP Response node
parent
958de21be8
commit
b78210e3be
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue