From 5f4796768236f3311fa956cdf488a6b7cbfcf8a8 Mon Sep 17 00:00:00 2001 From: sak Date: Sat, 8 Apr 2023 13:11:46 +0700 Subject: [PATCH] httpStaticMiddleware support array of middlewares --- packages/node_modules/node-red/red.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/node-red/red.js b/packages/node_modules/node-red/red.js index cb247ee48..d602cfe4a 100755 --- a/packages/node_modules/node-red/red.js +++ b/packages/node_modules/node-red/red.js @@ -424,7 +424,7 @@ httpsPromise.then(function(startupHttps) { if (settings.httpStatic) { let appUseMem = {}; let httpStaticMiddleware = (req, res, next) => next() - if (typeof settings.httpStaticMiddleware === 'function' || isArray(settings.httpStaticMiddleware)) { + if (typeof settings.httpStaticMiddleware === 'function' || Array.isArray(settings.httpStaticMiddleware)) { httpStaticMiddleware = settings.httpStaticMiddleware }