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 6670bad commit aecd5bcCopy full SHA for aecd5bc
packages/event-handler/tests/unit/rest/helpers.ts
@@ -72,8 +72,8 @@ export const createSettingHeadersMiddleware = (headers: {
72
}): Middleware => {
73
return async (_params, _options, next) => {
74
await next();
75
- Object.entries(headers).map(([key, value]) =>
76
- _options.res.headers.set(key, value)
77
- );
+ Object.entries(headers).forEach(([key, value]) => {
+ _options.res.headers.set(key, value);
+ });
78
};
79
0 commit comments