I wanted to set the Authorization header to ignore using the --ignoreHeader option, but it produces the bellow error when vising an endpoint:
TypeError: ignoreHeaders.map is not a function
at Object.exports.matchesHeader (/usr/lib/node_modules/drakov/lib/content.js:114:53)
at /usr/lib/node_modules/drakov/lib/handler-filter.js:6:24
at Array.filter (<anonymous>)
at Object.exports.filterHandlers (/usr/lib/node_modules/drakov/lib/handler-filter.js:36:37)
at /usr/lib/node_modules/drakov/lib/middleware/route-handlers.js:26:38
at Array.forEach (<anonymous>)
at middleware (/usr/lib/node_modules/drakov/lib/middleware/route-handlers.js:15:35)
at Layer.handle [as handle_request] (/usr/lib/node_modules/drakov/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/usr/lib/node_modules/drakov/node_modules/express/lib/router/index.js:317:13)
at /usr/lib/node_modules/drakov/node_modules/express/lib/router/index.js:284:7
Full command: drakov -f public.apib -p 8080 --ignoreHeader Authorization
Hello,
I wanted to set the
Authorization
header to ignore using the--ignoreHeader
option, but it produces the bellow error when vising an endpoint:Full command:
drakov -f public.apib -p 8080 --ignoreHeader Authorization
Version: 1.0.4