From bd80cf4f836f843f0d7c766782274bf89a209ac2 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 9 Jul 2014 09:08:43 +0100 Subject: [PATCH] HTTP Out - header properties must be strings --- nodes/core/io/21-httpin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/core/io/21-httpin.js b/nodes/core/io/21-httpin.js index 2e2d0962e..2843121a2 100644 --- a/nodes/core/io/21-httpin.js +++ b/nodes/core/io/21-httpin.js @@ -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); }