mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-29 21:10:14 +02:00
stream/internal: convert headers to iterable object
This commit is contained in:
parent
92f3d2366c
commit
eb65e816af
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user