fix(download): disable keepalive for chunk posts
This commit is contained in:
parent
1a65b1c190
commit
88713d9290
|
|
@ -125,6 +125,7 @@ export async function downloadStream(streamUrl: string, format: any, stream: Wri
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: new Uint8Array([0x78, 0]), // protobuf: { 15: 0 } (no idea what it means but this is what YouTube uses),
|
body: new Uint8Array([0x78, 0]), // protobuf: { 15: 0 } (no idea what it means but this is what YouTube uses),
|
||||||
headers: headersToSend,
|
headers: headersToSend,
|
||||||
|
keepalive: false,
|
||||||
proxy
|
proxy
|
||||||
});
|
});
|
||||||
if (postResponse.status !== 200) {
|
if (postResponse.status !== 200) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue