stream/internal: don't copy Host header from request

its basically always gonna be localhost:9k
This commit is contained in:
dumbmoron 2024-04-27 11:30:16 +00:00
parent 3d3a717f3e
commit dd56ae60e7
No known key found for this signature in database

View file

@ -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
});