mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Update comment to clarify middleware positioning in HTTP node setup
This commit is contained in:
parent
3fc94e7b99
commit
3a29330021
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user