Update comment to clarify middleware positioning in HTTP node setup

pull/5037/head
Debadutta Panda 2025-02-14 13:50:06 +05:30
parent 3fc94e7b99
commit 3a29330021
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ module.exports = function(RED) {
if(typeof RED.httpNode === 'function' && (rootApp = getRootApp(RED.httpNode))) {
// Add middleware to the stack
rootApp.use(setupRawBodyCapture);
// Move the router to top of the stack
// Move the middleware to top of the stack
rootApp._router.stack.unshift(rootApp._router.stack.pop());
}