[PR #1002] [MERGED] api/stream: add Estimated-Content-Length header to tunnels #15441

Closed
opened 2026-05-24 08:19:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/1002
Author: @dumbmoron
Created: 12/17/2024
Status: Merged
Merged: 12/20/2024
Merged by: @github-actions[bot]

Base: queueHead: estimated-length


📝 Commits (10+)

  • e7c2872 api/stream: rename getInternalStream to getInternalTunnel
  • f06aa65 api: always create separate server for itunnels
  • bc597c8 api: move itunnel handlers to separate file
  • bf4675a api/stream: move bsky override into isHlsResponse
  • 11388cb api/stream: await all call types
  • 05e0f03 api/stream: add Estimated-Content-Length header to tunnels
  • 6e6a792 api/bilibili: mark tunnel as isHLS where appropriate
  • f5b47a2 api/tunnel: adjust estimate multiplier to 1.1
  • fec07d0 api: add cors headers for tunnels
  • 06c3481 api/stream: remove random undici import

📊 Changes

9 files changed (+252 additions, -64 deletions)

View changed files

📝 api/src/core/api.js (+14 -41)
api/src/core/itunnel.js (+61 -0)
📝 api/src/processing/services/bilibili.js (+2 -1)
📝 api/src/stream/internal-hls.js (+62 -2)
📝 api/src/stream/internal.js (+39 -5)
📝 api/src/stream/manage.js (+12 -2)
📝 api/src/stream/shared.js (+39 -0)
📝 api/src/stream/stream.js (+5 -5)
📝 api/src/stream/types.js (+18 -8)

📄 Description

@wukko
mr-clean-cat (1)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imputnet/cobalt/pull/1002 **Author:** [@dumbmoron](https://github.com/dumbmoron) **Created:** 12/17/2024 **Status:** ✅ Merged **Merged:** 12/20/2024 **Merged by:** [@github-actions[bot]](https://github.com/apps/github-actions) **Base:** `queue` ← **Head:** `estimated-length` --- ### 📝 Commits (10+) - [`e7c2872`](https://github.com/imputnet/cobalt/commit/e7c2872e402a036a336e3a3490de3fbe19c72696) api/stream: rename getInternalStream to getInternalTunnel - [`f06aa65`](https://github.com/imputnet/cobalt/commit/f06aa65801041929e1a8440b62457d7b96b14c4f) api: always create separate server for itunnels - [`bc597c8`](https://github.com/imputnet/cobalt/commit/bc597c817faa2dec9ce386458dac4f7a8cdb6b48) api: move itunnel handlers to separate file - [`bf4675a`](https://github.com/imputnet/cobalt/commit/bf4675a5e37fd2084482068eb60974e39d7d7023) api/stream: move bsky override into isHlsResponse - [`11388cb`](https://github.com/imputnet/cobalt/commit/11388cb418bec582fd5ccaa00d8f5e51af78bdaf) api/stream: await all call types - [`05e0f03`](https://github.com/imputnet/cobalt/commit/05e0f031ed46fe0aa45f7c413e19bac4e9424dc1) api/stream: add `Estimated-Content-Length` header to tunnels - [`6e6a792`](https://github.com/imputnet/cobalt/commit/6e6a792984d2ca8124db84edba374787e7b7ce2d) api/bilibili: mark tunnel as isHLS where appropriate - [`f5b47a2`](https://github.com/imputnet/cobalt/commit/f5b47a2b7e2b998405c9ab8515b2a2dfd4c47aaf) api/tunnel: adjust estimate multiplier to 1.1 - [`fec07d0`](https://github.com/imputnet/cobalt/commit/fec07d0e10693fb0fcf0bb9fafdb88a3726935cb) api: add cors headers for tunnels - [`06c3481`](https://github.com/imputnet/cobalt/commit/06c348126eaffd61b4070743e78cf582c56e124c) api/stream: remove random undici import ### 📊 Changes **9 files changed** (+252 additions, -64 deletions) <details> <summary>View changed files</summary> 📝 `api/src/core/api.js` (+14 -41) ➕ `api/src/core/itunnel.js` (+61 -0) 📝 `api/src/processing/services/bilibili.js` (+2 -1) 📝 `api/src/stream/internal-hls.js` (+62 -2) 📝 `api/src/stream/internal.js` (+39 -5) 📝 `api/src/stream/manage.js` (+12 -2) 📝 `api/src/stream/shared.js` (+39 -0) 📝 `api/src/stream/stream.js` (+5 -5) 📝 `api/src/stream/types.js` (+18 -8) </details> ### 📄 Description @wukko ![mr-clean-cat (1)](https://github.com/user-attachments/assets/134a097d-13d1-4521-b539-473f0ea4a4da) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-24 08:19:55 -05:00
Sign in to join this conversation.