From 3572888ba43ec2ff21ec91e2c51b406b74c4c1f8 Mon Sep 17 00:00:00 2001 From: Wes van Vugt Date: Fri, 30 May 2025 19:08:17 -0700 Subject: [PATCH] Add connection close header --- src/utils/wait-for-localhost.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/wait-for-localhost.ts b/src/utils/wait-for-localhost.ts index b17400d..bf500a9 100644 --- a/src/utils/wait-for-localhost.ts +++ b/src/utils/wait-for-localhost.ts @@ -11,7 +11,7 @@ export default function waitForLocalhost(port: number, host: string): Promise setTimeout(main, 200); const main = () => { const request = http.request( - {method: 'GET', port, host, path: '/'}, + {method: 'GET', port, host, path: '/', headers: {Connection: 'close'}}, (response: {statusCode: number}) => { if (response.statusCode === 400) { return resolve();