Skip to content

Commit

Permalink
Fix keepAlive parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarba committed Feb 20, 2024
1 parent 5412662 commit 582d510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down

0 comments on commit 582d510

Please # to comment.