Browse Source

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>
Sasha Andonov 1 year ago
parent
commit
e776759549
1 changed files with 3 additions and 0 deletions
  1. 3 0
      libs/luci-lib-httpprotoutils/luasrc/http/mime.lua

+ 3 - 0
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.