From dd56ae60e76b37801746bad74a6a479f393dc084 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Sat, 27 Apr 2024 11:30:16 +0000 Subject: [PATCH] stream/internal: don't copy Host header from request its basically always gonna be localhost:9k --- src/modules/stream/internal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/stream/internal.js b/src/modules/stream/internal.js index db39fb05..75e18ece 100644 --- a/src/modules/stream/internal.js +++ b/src/modules/stream/internal.js @@ -77,7 +77,10 @@ export async function internalStream(streamInfo, res) { try { const req = await request(streamInfo.url, { - headers: streamInfo.headers, + headers: { + ...streamInfo.headers, + host: undefined + }, signal: streamInfo.controller.signal, maxRedirections: 16 });