move node.send in exec and httprequest nodes

just in case
This commit is contained in:
Dave Conway-Jones
2018-02-06 11:34:24 +00:00
parent 415c768ae4
commit 5931e13b9c
2 changed files with 3 additions and 4 deletions

View File

@@ -263,9 +263,8 @@ module.exports = function(RED) {
catch(e) { node.warn(RED._("httpin.errors.json-error")); }
}
}
node.send(msg);
node.status({});
node.send(msg);
}
});
});
@@ -280,8 +279,8 @@ module.exports = function(RED) {
node.error(err,msg);
msg.payload = err.toString() + " : " + url;
msg.statusCode = err.code;
node.send(msg);
node.status({fill:"red",shape:"ring",text:err.code});
node.send(msg);
});
if (payload) {
req.write(payload);