summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip McMahon <philip.mcmahon@guardian.co.uk>2020-01-12 22:31:49 +0000
committerAbhilash Raj <maxking@users.noreply.github.com>2020-01-12 14:31:49 -0800
commitb2b4a51f7463a0392456f7772f33223e57fa4ccc (patch)
treedd89a4100ba280b2bc55b0e7deefbc07e20f7ede
parent61b14151cc92021a10f94765eaa152ed04eb262a (diff)
downloadcpython-git-b2b4a51f7463a0392456f7772f33223e57fa4ccc.tar.gz
bpo-32021: Support brotli .br encoding in mimetypes (#12200)
Add support for brotli encoding in the encoding_map.
-rw-r--r--Lib/mimetypes.py1
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2019-03-11-13-30-40.bpo-32021.dpbtkP.rst1
2 files changed, 2 insertions, 0 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index 9b42bf6dd2..a09e618d8a 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 0000000000..a07f6d3e85
--- /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