mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 07:31:07 +01:00
Show requesting status correctly in http request node when multiple processes are working
This commit is contained in:
@@ -152,7 +152,9 @@ in your Node-RED user directory (${RED.settings.userDir}).
|
||||
const asLowercase = name.toLowercase();
|
||||
return headersObject[Object.keys(headersObject).find(k => k.toLowerCase() === asLowercase)];
|
||||
}
|
||||
this.count = 0;
|
||||
this.on("input",function(msg,nodeSend,nodeDone) {
|
||||
node.count++;
|
||||
checkNodeAgentPatch();
|
||||
//reset redirectList on each request
|
||||
redirectList = [];
|
||||
@@ -658,7 +660,10 @@ in your Node-RED user directory (${RED.settings.userDir}).
|
||||
catch(e) { node.warn(RED._("httpin.errors.json-error")); }
|
||||
}
|
||||
}
|
||||
node.status({});
|
||||
node.count--;
|
||||
if (node.count === 0) {
|
||||
node.status({});
|
||||
}
|
||||
nodeSend(msg);
|
||||
nodeDone();
|
||||
}).catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user