diff options
author | Sasha Andonov <s.andonnov@gmail.com> | 2023-01-24 10:00:51 -0500 |
---|---|---|
committer | Sasha Andonov <s.andonnov@gmail.com> | 2023-01-24 10:00:51 -0500 |
commit | e776759549fba3e69727a0402e39d7c8d13118fd (patch) | |
tree | 95d43e4b565a5c950a8e543d1ed03fd69846a7db /libs/luci-lib-httpprotoutils | |
parent | 938e54df17d6a48fc8d84fe5893ff67ffe4a3e6e (diff) |
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 <s.andonnov@gmail.com>
Diffstat (limited to 'libs/luci-lib-httpprotoutils')
-rw-r--r-- | libs/luci-lib-httpprotoutils/luasrc/http/mime.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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. |