Skip to content

Commit 1ce1e9b

Browse files
committed
fix TS errors
1 parent 3b9dd16 commit 1ce1e9b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/remix-architect/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ export async function sendRemixResponse(
106106
let cookies: string[] = [];
107107

108108
// Arc/AWS API Gateway will send back set-cookies outside of response headers.
109-
nodeResponse.headers.entries().forEach(([key, value]) => {
109+
for (let [key, value] of nodeResponse.headers.entries()) {
110110
if (key.toLowerCase() === "set-cookie") {
111111
cookies.push(value);
112112
}
113-
});
113+
}
114114

115115
if (cookies.length) {
116116
nodeResponse.headers.delete("Set-Cookie");

packages/remix-express/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ export async function sendRemixResponse(
118118
res.statusMessage = nodeResponse.statusText;
119119
res.status(nodeResponse.status);
120120

121-
nodeResponse.headers
122-
.entries()
123-
.forEach(([key, value]) => res.append(key, value));
121+
for (let [key, value] of nodeResponse.headers.entries()) {
122+
res.append(key, value);
123+
}
124124

125125
if (nodeResponse.body) {
126126
await writeReadableStreamToWritable(nodeResponse.body, res);

0 commit comments

Comments
 (0)