mirror of https://github.com/node-red/node-red.git
HTTP Out payload: relax null checking
parent
4d031891e5
commit
3db84d5bf1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue