From f657c31432fdcea446fc5b22e5a38d93598b7d5c Mon Sep 17 00:00:00 2001 From: PeachScript Date: Sun, 7 Apr 2024 16:56:02 +0800 Subject: [PATCH] fix: locked stream in ssr --- packages/server/src/ssr.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/server/src/ssr.ts b/packages/server/src/ssr.ts index 2fe9652be93d..f65a0bc86dfe 100644 --- a/packages/server/src/ssr.ts +++ b/packages/server/src/ssr.ts @@ -353,9 +353,7 @@ export default function createRequestHandler( }, }); - stream.pipeThrough(transformStream); - - let res = new Response(stream, { + let res = new Response(stream.pipeThrough(transformStream), { headers: { 'content-type': 'text/html; charset=utf-8', },