luci-lib-httpprotoutils: add airplay mime types 6212/head
authorSasha Andonov <s.andonnov@gmail.com>
Tue, 24 Jan 2023 15:00:51 +0000 (10:00 -0500)
committerSasha Andonov <s.andonnov@gmail.com>
Tue, 24 Jan 2023 15:00:51 +0000 (10:00 -0500)
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>
libs/luci-lib-httpprotoutils/luasrc/http/mime.lua

index 0bcff8a36b83e6e7780e747c8c1ba78694fd51fb..90176b5a777834aa57e11bda13b05680fc311bdb 100644 (file)
@@ -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.