api/stream: remove content-length estimation from proxy()

This commit is contained in:
jj 2024-12-20 16:35:40 +00:00
parent 78d0670f50
commit 52b7f9523f
No known key found for this signature in database

View file

@ -73,7 +73,6 @@ const proxy = async (streamInfo, res) => {
try {
res.setHeader('Cross-Origin-Resource-Policy', 'cross-origin');
res.setHeader('Content-disposition', contentDisposition(streamInfo.filename));
res.setHeader('Estimated-Content-Length', await estimateTunnelLength(streamInfo));
const { body: stream, headers, statusCode } = await request(streamInfo.urls, {
headers: {