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:
parent
4d031891e5
commit
3db84d5bf1
@ -125,7 +125,7 @@ module.exports = function(RED) {
|
|||||||
} else {
|
} else {
|
||||||
if (msg.res.get('content-length') == null) {
|
if (msg.res.get('content-length') == null) {
|
||||||
var len;
|
var len;
|
||||||
if (msg.payload === null) {
|
if (msg.payload == null) {
|
||||||
len = 0;
|
len = 0;
|
||||||
} else if (typeof msg.payload == "number") {
|
} else if (typeof msg.payload == "number") {
|
||||||
len = Buffer.byteLength(""+msg.payload);
|
len = Buffer.byteLength(""+msg.payload);
|
||||||
|
Loading…
Reference in New Issue
Block a user