mirror of
https://github.com/strapi/strapi.git
synced 2026-01-04 11:16:32 +00:00
Upload proxy - Using Header objects build-in entries function (#6340)
* Using Header objects build-in entries function * Using const in iteration
This commit is contained in:
parent
bdf47753b2
commit
65cc815a18
@ -27,9 +27,9 @@ module.exports = {
|
||||
headers: _.omit(ctx.request.headers, ['origin', 'host', 'authorization']),
|
||||
});
|
||||
|
||||
Object.entries(res.headers.raw()).forEach(([key, value]) => {
|
||||
for (const [key, value] of res.headers.entries()) {
|
||||
ctx.set(key, value);
|
||||
});
|
||||
}
|
||||
|
||||
ctx.status = res.status;
|
||||
ctx.body = res.body;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user