From e6043096f787afe1ad9a15f15de3f99252bea3f3 Mon Sep 17 00:00:00 2001 From: Sasha Andonov Date: Tue, 24 Jan 2023 10:00:51 -0500 Subject: [PATCH] luci-lib-httpprotoutils: add airplay mime types Airplay of a statically hosted video file from one Apple device to another fails due to unrecognized content-type. Adding Airplay supported mime types fixes the issue. Signed-off-by: Sasha Andonov (cherry picked from commit e776759549fba3e69727a0402e39d7c8d13118fd) --- libs/luci-lib-httpprotoutils/luasrc/http/mime.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/luci-lib-httpprotoutils/luasrc/http/mime.lua b/libs/luci-lib-httpprotoutils/luasrc/http/mime.lua index 0bcff8a36b..90176b5a77 100644 --- a/libs/luci-lib-httpprotoutils/luasrc/http/mime.lua +++ b/libs/luci-lib-httpprotoutils/luasrc/http/mime.lua @@ -45,10 +45,13 @@ MIME_TYPES = { ["mp3"] = "audio/mpeg"; ["ogg"] = "audio/x-vorbis+ogg"; ["wav"] = "audio/x-wav"; + ["aac"] = "audio/aac"; ["mpg"] = "video/mpeg"; ["mpeg"] = "video/mpeg"; ["avi"] = "video/x-msvideo"; + ["mov"] = "video/quicktime"; + ["mp4"] = "video/mp4"; } -- "application/octet-stream" if the extension is unknown. -- 2.30.2