Skip to content

Commit

Permalink
Fix casing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gratenes committed Sep 4, 2024
1 parent e49d331 commit bc9e179
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/logic/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import {getUrl} from "../utils";

const m3u8ContentTypes: string[] = [
'application/vnd.',
'video/MP2T',
'application/x-mpegURL',
'application/mpegURL',
'video/mp2t',
'application/x-mpegurl',
'application/mpegurl',
'application/x-mpegurl',
'application/vnd.apple.mpegurl',
'audio/mpegurl',
'audio/x-mpegURL',
'audio/x-mpegurl',
'video/x-mpegurl',
'application/vnd.apple.mpegurl.audio',
'application/vnd.apple.mpegurl.video'
Expand Down Expand Up @@ -59,7 +59,7 @@ export const M3u8ProxyV2 = async (request: Request<unknown>): Promise<Response>


// get the content type of the response
const responseContentType = response.headers.get('Content-Type')
const responseContentType = response.headers.get('Content-Type')?.toLowerCase()
let responseBody: BodyInit | null = response.body

if (responseContentType && m3u8ContentTypes.some(name => responseContentType.includes(name))) {
Expand Down

0 comments on commit bc9e179

Please sign in to comment.