stream/internal: convert headers to iterable object
This commit is contained in:
parent
92f3d2366c
commit
eb65e816af
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue