]> git.plutz.net Git - cgilite/blobdiff - file.sh
mime types for streaming formats
[cgilite] / file.sh
diff --git a/file.sh b/file.sh
index 51ec245f2678602a12882d71d39173ff9acd98b1..04a8ef617c9f755a4dcb7c3cf3adeeca69683f27 100755 (executable)
--- a/file.sh
+++ b/file.sh
@@ -32,9 +32,14 @@ file_type(){
     svg)       printf 'image/svg+xml';;
     gif)       printf 'image/gif';;
     webm)      printf 'video/webm';;
-    mp4)       printf 'video/mp4';;
+    mp4|m4v)   printf 'video/mp4';;
+    m4a)       printf 'audio/mp4';;
     ogg)       printf 'audio/ogg';;
     xml)       printf 'application/xml';;
+    m3u8)      printf 'application/x-mpegURL';;
+    ts)        printf 'video/MP2T';;
+    mpd)       printf 'application/dash+xml';;
+    m4s)       printf 'video/iso.segment';;
     *)         printf 'application/octet-stream';;
   esac
 }