mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
749eaa2181
commit
72476cc8a7
@ -123,6 +123,9 @@ module.exports = function(RED) {
|
||||
if (typeof msg.payload == "object" && !Buffer.isBuffer(msg.payload)) {
|
||||
msg.res.jsonp(statusCode,msg.payload);
|
||||
} else {
|
||||
if (msg.res.get('content-length') == null) {
|
||||
msg.res.set('content-length', Buffer.byteLength(msg.payload));
|
||||
}
|
||||
msg.res.send(statusCode,msg.payload);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user