1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

HTTP Out payload: relax null checking

This commit is contained in:
Nick O'Leary 2014-07-09 09:51:32 +01:00
parent 4d031891e5
commit 3db84d5bf1

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