From 1a685c30aa52f1161ec6479c54823fae43214efa Mon Sep 17 00:00:00 2001 From: poggingfish <38115495+poggingfish@users.noreply.github.com> Date: Sun, 16 Jun 2024 14:21:43 -0500 Subject: [PATCH] vweb, veb, x.vweb: add `m3u8` MIME type `application/vnd.apple.mpegurl` for multimedia playlists (#21688) --- vlib/veb/veb.v | 1 + vlib/vweb/vweb.v | 1 + vlib/x/vweb/vweb.v | 1 + 3 files changed, 3 insertions(+) diff --git a/vlib/veb/veb.v b/vlib/veb/veb.v index 18dde227bf..95f7206107 100644 --- a/vlib/veb/veb.v +++ b/vlib/veb/veb.v @@ -161,6 +161,7 @@ pub const mime_types = { '.3gp': 'video/3gpp' '.3g2': 'video/3gpp2' '.7z': 'application/x-7z-compressed' + '.m3u8': 'application/vnd.apple.mpegurl' } pub const max_http_post_size = 1024 * 1024 diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index e0c580036d..61e5b2cfab 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -142,6 +142,7 @@ pub const mime_types = { '.3gp': 'video/3gpp' '.3g2': 'video/3gpp2' '.7z': 'application/x-7z-compressed' + '.m3u8': 'application/vnd.apple.mpegurl' } pub const max_http_post_size = 1024 * 1024 pub const default_port = 8080 diff --git a/vlib/x/vweb/vweb.v b/vlib/x/vweb/vweb.v index b955a4340c..ae0259f59f 100644 --- a/vlib/x/vweb/vweb.v +++ b/vlib/x/vweb/vweb.v @@ -162,6 +162,7 @@ pub const mime_types = { '.3gp': 'video/3gpp' '.3g2': 'video/3gpp2' '.7z': 'application/x-7z-compressed' + '.m3u8': 'application/vnd.apple.mpegurl' } pub const max_http_post_size = 1024 * 1024