stream/internal: don't copy Host header from request
its basically always gonna be localhost:9k
This commit is contained in:
parent
3d3a717f3e
commit
dd56ae60e7
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue