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