HTTP Out payload: relax null checking

pull/262/head
Nick O'Leary 2014-07-09 09:51:32 +01:00
parent 4d031891e5
commit 3db84d5bf1
1 changed files with 1 additions and 1 deletions

View File

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