From b2b4a51f7463a0392456f7772f33223e57fa4ccc Mon Sep 17 00:00:00 2001 From: Philip McMahon Date: Sun, 12 Jan 2020 22:31:49 +0000 Subject: [PATCH] bpo-32021: Support brotli .br encoding in mimetypes (#12200) Add support for brotli encoding in the encoding_map. --- Lib/mimetypes.py | 1 + .../Core and Builtins/2019-03-11-13-30-40.bpo-32021.dpbtkP.rst | 1 + 2 files changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2019-03-11-13-30-40.bpo-32021.dpbtkP.rst diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 9b42bf6dd2c..a09e618d8a5 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 00000000000..a07f6d3e85a --- /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