mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
HTTP Out - header properties must be strings
This commit is contained in:
parent
ac7448759b
commit
bd80cf4f83
@ -124,7 +124,7 @@ module.exports = function(RED) {
|
|||||||
msg.res.jsonp(statusCode,msg.payload);
|
msg.res.jsonp(statusCode,msg.payload);
|
||||||
} else {
|
} else {
|
||||||
if (msg.res.get('content-length') == null) {
|
if (msg.res.get('content-length') == null) {
|
||||||
msg.res.set('content-length', Buffer.byteLength(msg.payload));
|
msg.res.set('content-length', ""+Buffer.byteLength(msg.payload));
|
||||||
}
|
}
|
||||||
msg.res.send(statusCode,msg.payload);
|
msg.res.send(statusCode,msg.payload);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user