We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5359aa8 commit cced7d1Copy full SHA for cced7d1
src/RESTController.ts
@@ -158,7 +158,7 @@ const RESTController = {
158
const responseHeaders = {};
159
const availableHeaders = response.headers.get('access-control-expose-headers') || '';
160
availableHeaders.split(', ').forEach((header: string) => {
161
- if (response.headers.has(header)) {
+ if (header && response.headers.has(header)) {
162
responseHeaders[header] = response.headers.get(header);
163
}
164
});
0 commit comments