mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-02 08:26:22 +01:00
api/stream: remove content-length estimation from proxy()
This commit is contained in:
parent
78d0670f50
commit
52b7f9523f
1 changed files with 0 additions and 1 deletions
|
@ -73,7 +73,6 @@ const proxy = async (streamInfo, res) => {
|
||||||
try {
|
try {
|
||||||
res.setHeader('Cross-Origin-Resource-Policy', 'cross-origin');
|
res.setHeader('Cross-Origin-Resource-Policy', 'cross-origin');
|
||||||
res.setHeader('Content-disposition', contentDisposition(streamInfo.filename));
|
res.setHeader('Content-disposition', contentDisposition(streamInfo.filename));
|
||||||
res.setHeader('Estimated-Content-Length', await estimateTunnelLength(streamInfo));
|
|
||||||
|
|
||||||
const { body: stream, headers, statusCode } = await request(streamInfo.urls, {
|
const { body: stream, headers, statusCode } = await request(streamInfo.urls, {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
Loading…
Reference in a new issue