From eb65e816af2fa9ce40c686da709130d27739d4c7 Mon Sep 17 00:00:00 2001 From: wukko Date: Sat, 6 Jul 2024 23:15:15 +0600 Subject: [PATCH] stream/internal: convert headers to iterable object --- src/modules/stream/internal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/stream/internal.js b/src/modules/stream/internal.js index 8ab2ec76..7a155a9a 100644 --- a/src/modules/stream/internal.js +++ b/src/modules/stream/internal.js @@ -85,7 +85,7 @@ async function handleGenericStream(streamInfo, res) { try { const req = await request(streamInfo.url, { headers: { - ...streamInfo.headers, + ...Object.fromEntries(streamInfo.headers), host: undefined }, dispatcher: streamInfo.dispatcher,