api/stream/internal: workaround for wrong bsky content-type, refactor

This commit is contained in:
wukko
2024-11-16 22:15:13 +06:00
parent b61b8c82a2
commit 606f0fd29a
2 changed files with 17 additions and 11 deletions

View File

@@ -53,7 +53,7 @@ function transformMediaPlaylist(streamInfo, hlsPlaylist) {
const HLS_MIME_TYPES = ["application/vnd.apple.mpegurl", "audio/mpegurl", "application/x-mpegURL"];
export function isHlsRequest (req) {
export function isHlsResponse (req) {
return HLS_MIME_TYPES.includes(req.headers['content-type']);
}