From 3db84d5bf188592447e852c256501eb6f32b890e Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 9 Jul 2014 09:51:32 +0100 Subject: [PATCH] HTTP Out payload: relax null checking --- 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 24b69d34b..e00c907cf 100644 --- a/nodes/core/io/21-httpin.js +++ b/nodes/core/io/21-httpin.js @@ -125,7 +125,7 @@ module.exports = function(RED) { } else { if (msg.res.get('content-length') == null) { var len; - if (msg.payload === null) { + if (msg.payload == null) { len = 0; } else if (typeof msg.payload == "number") { len = Buffer.byteLength(""+msg.payload);