Skip to content

Commit

Permalink
[Feature] Update MIME types.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Sep 10, 2023
1 parent 8c878fd commit 7b76eb7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private val extensionToMimeTypeMap = mapOf(
"atomsrv" to "application/atomserv+xml",
"au" to "audio/basic",
"avi" to "video/avi",
"avif" to "image/avif",
"awb" to "audio/amr-wb",
"axa" to "audio/annodex",
"axv" to "video/annodex",
Expand Down Expand Up @@ -119,6 +120,7 @@ private val extensionToMimeTypeMap = mapOf(
"ddeb" to "application/vnd.debian.binary-package",
"deb" to "application/x-debian-package",
"deploy" to "application/octet-stream",
"der" to "application/x-x509-ca-cert",
"dfxp" to "application/ttml+xml",
"dif" to "video/dv",
"diff" to "text/plain",
Expand Down
2 changes: 2 additions & 0 deletions mime/MimeTypeMapCompat.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ private val extensionToMimeTypeMap = mapOf(
"atomsrv" to "application/atomserv+xml",
"au" to "audio/basic",
"avi" to "video/avi",
"avif" to "image/avif",
"awb" to "audio/amr-wb",
"axa" to "audio/annodex",
"axv" to "video/annodex",
Expand Down Expand Up @@ -109,6 +110,7 @@ private val extensionToMimeTypeMap = mapOf(
"ddeb" to "application/vnd.debian.binary-package",
"deb" to "application/x-debian-package",
"deploy" to "application/octet-stream",
"der" to "application/x-x509-ca-cert",
"dfxp" to "application/ttml+xml",
"dif" to "video/dv",
"diff" to "text/plain",
Expand Down
2 changes: 2 additions & 0 deletions mime/android.extensions
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ atomcat application/atomcat+xml
atomsrv application/atomserv+xml
au audio/basic
avi video/avi
avif image/avif
awb audio/amr-wb
axa audio/annodex
axv video/annodex
Expand Down Expand Up @@ -108,6 +109,7 @@ dcr application/x-director
ddeb application/vnd.debian.binary-package
deb application/x-debian-package
deploy application/octet-stream
der application/x-x509-ca-cert
dfxp application/ttml+xml
dif video/dv
diff text/plain
Expand Down
2 changes: 1 addition & 1 deletion mime/generate-extensions.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

BRANCH=master
BRANCH=main

debian_mime_types=$(mktemp)
android_mime_types=$(mktemp)
Expand Down

0 comments on commit 7b76eb7

Please sign in to comment.