Skip to content

Commit 73f2aad

Browse files
bmeurerDevtools-frontend LUCI CQ
authored andcommitted
[network] Add missing M3U media types.
While officially only `application/vnd.apple.mpegurl` and `audio/mpegurl` are considered as media types for HLS playlists, there are a few more media types in active use[^1]. Add these to the list of additional text mime types. [^1]: https://en.wikipedia.org/wiki/M3U Fixed: 393718935 Change-Id: I961a6b41e54921cacb3c1f823c03f9c1d2df1485 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6345654 Commit-Queue: Simon Zünd <[email protected]> Auto-Submit: Benedikt Meurer <[email protected]> Reviewed-by: Simon Zünd <[email protected]>
1 parent 0a6af20 commit 73f2aad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

front_end/core/platform/MimeType.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@ const ADDITIONAL_TEXT_MIME_TYPES = new Set([
2323
'application/javascript',
2424
'application/json',
2525
'application/json+protobuf',
26+
'application/mpegurl',
2627
'application/vnd.apple.mpegurl',
2728
'application/vnd.dart',
2829
'application/xml',
2930
'application/x-aspx',
3031
'application/x-javascript',
3132
'application/x-jsp',
3233
'application/x-httpd-php',
34+
'application/x-mpegurl',
3335
'audio/mpegurl',
36+
'audio/x-mpegurl',
3437
]);
3538

3639
/**

0 commit comments

Comments
 (0)