Skip to content

Commit cced7d1

Browse files
committed
fix: RESTController - added header emptiness check
1 parent 5359aa8 commit cced7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RESTController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const RESTController = {
158158
const responseHeaders = {};
159159
const availableHeaders = response.headers.get('access-control-expose-headers') || '';
160160
availableHeaders.split(', ').forEach((header: string) => {
161-
if (response.headers.has(header)) {
161+
if (header && response.headers.has(header)) {
162162
responseHeaders[header] = response.headers.get(header);
163163
}
164164
});

0 commit comments

Comments
 (0)