]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-32021: Support brotli .br encoding in mimetypes (#12200)
authorPhilip McMahon <philip.mcmahon@guardian.co.uk>
Sun, 12 Jan 2020 22:31:49 +0000 (22:31 +0000)
committerAbhilash Raj <maxking@users.noreply.github.com>
Sun, 12 Jan 2020 22:31:49 +0000 (14:31 -0800)
Add support for brotli encoding in the encoding_map.

Lib/mimetypes.py
Misc/NEWS.d/next/Core and Builtins/2019-03-11-13-30-40.bpo-32021.dpbtkP.rst [new file with mode: 0644]

index 9b42bf6dd2ca74ad924969b4392df92c93cef5c0..a09e618d8a584d752ea99c72bb76513fe77075b9 100644 (file)
@@ -401,6 +401,7 @@ def _default_mime_types():
         '.Z': 'compress',
         '.bz2': 'bzip2',
         '.xz': 'xz',
+        '.br': 'br',
         }
 
     # Before adding new types, make sure they are either registered with IANA,
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-03-11-13-30-40.bpo-32021.dpbtkP.rst b/Misc/NEWS.d/next/Core and Builtins/2019-03-11-13-30-40.bpo-32021.dpbtkP.rst
new file mode 100644 (file)
index 0000000..a07f6d3
--- /dev/null
@@ -0,0 +1 @@
+Include brotli .br encoding in mimetypes encodings_map
\ No newline at end of file