Skip to content

Commit 821be7c

Browse files
committed
use const [key, value] to loop entries
1 parent 1dc72f9 commit 821be7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class Server {
5656
throw e;
5757
}
5858

59-
for (const header of this.globalHeaders)
60-
apiRequest._responseHeaders.set(header[0], header[1]);
59+
for (const [key, value] of this.globalHeaders)
60+
apiRequest._responseHeaders.set(key, value);
6161

6262
if (this.copyOrigin) {
6363
apiRequest._responseHeaders.set("access-control-allow-origin", apiRequest.headers.get("Origin") ?? "*");

0 commit comments

Comments
 (0)