Skip to content

Commit

Permalink
HTTP Out - header properties must be strings
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Jul 9, 2014
1 parent ac74487 commit bd80cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/core/io/21-httpin.js
Expand Up @@ -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);
}
Expand Down

0 comments on commit bd80cf4

Please sign in to comment.