From 582d51010b2a31db13070125dc48708614667170 Mon Sep 17 00:00:00 2001 From: Andrew Barba Date: Tue, 20 Feb 2024 16:47:35 -0500 Subject: [PATCH] Fix keepAlive parsing --- src/http2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http2.ts b/src/http2.ts index c5857dd..27940c9 100644 --- a/src/http2.ts +++ b/src/http2.ts @@ -48,7 +48,7 @@ export async function http2Fetch( // Find or create http client const client = httpClient(origin, { - keepAlive: Boolean(options?.keepAlive), + keepAlive: options?.keepAlive === false ? false : true, pingInterval: parsePingInterval(options?.keepAlive) })