stream/internal: convert headers to iterable object

This commit is contained in:
wukko 2024-07-06 23:15:15 +06:00
parent 92f3d2366c
commit eb65e816af
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -85,7 +85,7 @@ async function handleGenericStream(streamInfo, res) {
try { try {
const req = await request(streamInfo.url, { const req = await request(streamInfo.url, {
headers: { headers: {
...streamInfo.headers, ...Object.fromEntries(streamInfo.headers),
host: undefined host: undefined
}, },
dispatcher: streamInfo.dispatcher, dispatcher: streamInfo.dispatcher,