From 52b7f9523f507613df09866bc62c6c30833d4cf9 Mon Sep 17 00:00:00 2001 From: jj Date: Fri, 20 Dec 2024 16:35:40 +0000 Subject: [PATCH] api/stream: remove content-length estimation from proxy() --- api/src/stream/types.js | 1 - 1 file changed, 1 deletion(-) diff --git a/api/src/stream/types.js b/api/src/stream/types.js index 4f665c5a..1e270df8 100644 --- a/api/src/stream/types.js +++ b/api/src/stream/types.js @@ -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: {