api/stream/internal: workaround for wrong bsky content-type, refactor
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user