]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42994: Add MIME types for opus, AAC, 3gpp and 3gpp2 (#24287)
authorNathan Beals <850796+ndbeals@users.noreply.github.com>
Wed, 3 Mar 2021 00:20:18 +0000 (19:20 -0500)
committerGitHub <noreply@github.com>
Wed, 3 Mar 2021 00:20:18 +0000 (16:20 -0800)
Co-authored-by: Nathan Beals <ndbeals@users.noreply.github.com>
Lib/mimetypes.py
Misc/NEWS.d/next/Library/2021-01-21-16-58-34.bpo-42994.El0Ksp.rst [new file with mode: 0644]

index f3343c805452d0bd5639eae007c73507c2640557..d2c8ac76dcc0850a3a9e1b3497688235e4ebc82e 100644 (file)
@@ -481,10 +481,19 @@ def _default_mime_types():
         '.wsdl'   : 'application/xml',
         '.xpdl'   : 'application/xml',
         '.zip'    : 'application/zip',
+        '.3gp'    : 'audio/3gpp',
+        '.3gpp'   : 'audio/3gpp',
+        '.3g2'    : 'audio/3gpp2',
+        '.3gpp2'  : 'audio/3gpp2',
+        '.aac'    : 'audio/aac',
+        '.adts'   : 'audio/aac',
+        '.loas'   : 'audio/aac',
+        '.ass'    : 'audio/aac',
         '.au'     : 'audio/basic',
         '.snd'    : 'audio/basic',
         '.mp3'    : 'audio/mpeg',
         '.mp2'    : 'audio/mpeg',
+        '.opus'   : 'audio/opus',
         '.aif'    : 'audio/x-aiff',
         '.aifc'   : 'audio/x-aiff',
         '.aiff'   : 'audio/x-aiff',
diff --git a/Misc/NEWS.d/next/Library/2021-01-21-16-58-34.bpo-42994.El0Ksp.rst b/Misc/NEWS.d/next/Library/2021-01-21-16-58-34.bpo-42994.El0Ksp.rst
new file mode 100644 (file)
index 0000000..40f8547
--- /dev/null
@@ -0,0 +1 @@
+Add MIME types for opus, AAC, 3gpp and 3gpp2