From 0872ba202521a49d49ad96214bceec3a2277fff0 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 11 Mar 2024 23:50:02 +0100 Subject: [PATCH] remove early hints --- presenter/server/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/presenter/server/index.ts b/presenter/server/index.ts index 9e8991c48c..2ec7071775 100644 --- a/presenter/server/index.ts +++ b/presenter/server/index.ts @@ -80,8 +80,8 @@ async function startServer() { next() } else { const { body, statusCode, headers, earlyHints } = httpResponse - if (res.writeEarlyHints) - res.writeEarlyHints({ link: earlyHints.map((e) => e.earlyHintLink) }) + // if (res.writeEarlyHints) + // res.writeEarlyHints({ link: earlyHints.map((e) => e.earlyHintLink) }) headers.forEach(([name, value]) => res.setHeader(name, value)) res.status(statusCode) // For HTTP streams use httpResponse.pipe() instead, see https://vike.dev/stream