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
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ module.exports = function(RED) {
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.set('content-length', ""+Buffer.byteLength(msg.payload));
}
msg.res.send(statusCode,msg.payload);
}