api/stream: remove content-length estimation from proxy()
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled

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: {