-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Not passing passThroughHeaders into mount(..., { passThroughHeaders: [] }) results in the following error:
node_modules/graphql-rest-router/Router.js:70
? [...this.passThroughHeaders, ...options.passThroughHeaders]
^
TypeError: options.passThroughHeaders is not iterable
at Router.mount (/Users/tw/Projects/curator-stack/api/node_modules/graphql-rest-router/Router.js:70:59)
at makeGQLRestRouter (/Users/tw/Projects/curator-stack/api/tests/load-test.js:37:6)
Changing
- const passThroughHeaders = Boolean(options)
+ const passThroughHeaders = Boolean(options) && Boolean(options.passThroughHeaders)here
Line 95 in 700c1f1
| const passThroughHeaders = Boolean(options) |
should fix the issue.
Metadata
Metadata
Assignees
Labels
No labels