1
0
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:
Nick O'Leary 2014-07-09 09:08:43 +01:00
parent ac7448759b
commit bd80cf4f83

View File

@ -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);
} }