From c9b72528321615365492472c1ac01c7306cdfbc7 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 2 Jul 2026 07:06:25 +0800 Subject: [PATCH] fix: avoid opening sse in runtime check --- .runtime/portal/scripts/check-stream-runtime.mjs | 1 + scripts/check-stream-runtime.mjs | 1 + 2 files changed, 2 insertions(+) diff --git a/.runtime/portal/scripts/check-stream-runtime.mjs b/.runtime/portal/scripts/check-stream-runtime.mjs index 4cb9074..fd9730e 100755 --- a/.runtime/portal/scripts/check-stream-runtime.mjs +++ b/.runtime/portal/scripts/check-stream-runtime.mjs @@ -47,6 +47,7 @@ async function checkJson(pathname) { async function checkSseHeaders(pathname) { const { res } = await fetchText(`${publicBase}${pathname}`, { + method: 'HEAD', headers: { Accept: 'text/event-stream' }, }); return { diff --git a/scripts/check-stream-runtime.mjs b/scripts/check-stream-runtime.mjs index 4cb9074..fd9730e 100755 --- a/scripts/check-stream-runtime.mjs +++ b/scripts/check-stream-runtime.mjs @@ -47,6 +47,7 @@ async function checkJson(pathname) { async function checkSseHeaders(pathname) { const { res } = await fetchText(`${publicBase}${pathname}`, { + method: 'HEAD', headers: { Accept: 'text/event-stream' }, }); return {