[Python-checkins] bpo-32021: Support brotli .br encoding in mimetypes (#12200)

Abhilash Raj webhook-mailer at python.org
Sun Jan 12 17:31:56 EST 2020


https://github.com/python/cpython/commit/b2b4a51f7463a0392456f7772f33223e57fa4ccc
commit: b2b4a51f7463a0392456f7772f33223e57fa4ccc
branch: master
author: Philip McMahon <philip.mcmahon at guardian.co.uk>
committer: Abhilash Raj <maxking at users.noreply.github.com>
date: 2020-01-12T14:31:49-08:00
summary:

bpo-32021: Support brotli .br encoding in mimetypes (#12200)

Add support for brotli encoding in the encoding_map.

files:
A Misc/NEWS.d/next/Core and Builtins/2019-03-11-13-30-40.bpo-32021.dpbtkP.rst
M Lib/mimetypes.py

diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index 9b42bf6dd2ca7..a09e618d8a584 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -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
index 0000000000000..a07f6d3e85af5
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2019-03-11-13-30-40.bpo-32021.dpbtkP.rst	
@@ -0,0 +1 @@
+Include brotli .br encoding in mimetypes encodings_map
\ No newline at end of file



More information about the Python-checkins mailing list