Skip to content

Commit b39a52c

Browse files
committed
chore: use for loop
1 parent 1a8d9dc commit b39a52c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/plugins/http.server.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ function writeClientHintsResponseHeaders(
288288
const nuxtApp = useNuxtApp()
289289
const callback = () => {
290290
const event = useRequestEvent(nuxtApp)
291-
Object.entries(headers).forEach(([key, value]) => {
291+
for (const [key, value] of Object.entries(headers)) {
292292
appendHeader(event, key, value)
293-
})
293+
}
294294
}
295295
const unhook = nuxtApp.hooks.hookOnce('app:rendered', callback)
296296
nuxtApp.hooks.hookOnce('app:error', () => {

0 commit comments

Comments
 (0)