From: Philip McMahon Date: Sun, 12 Jan 2020 22:31:49 +0000 (+0000) Subject: bpo-32021: Support brotli .br encoding in mimetypes (#12200) X-Git-Tag: v3.9.0a3~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2b4a51f7463a0392456f7772f33223e57fa4ccc;p=thirdparty%2FPython%2Fcpython.git bpo-32021: Support brotli .br encoding in mimetypes (#12200) Add support for brotli encoding in the encoding_map. --- diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 9b42bf6dd2ca..a09e618d8a58 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 000000000000..a07f6d3e85af --- /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