[Python-checkins] bpo-22589 Changed MIME type of .bmp to "image/bmp" (#4756)

R. David Murray webhook-mailer at python.org
Fri Dec 8 07:48:49 EST 2017


https://github.com/python/cpython/commit/ede157331b4f9e550334900b3b4de1c8590688de
commit: ede157331b4f9e550334900b3b4de1c8590688de
branch: master
author: Nitish Chandra <nitishchandrachinta at gmail.com>
committer: R. David Murray <rdmurray at bitdance.com>
date: 2017-12-08T07:48:44-05:00
summary:

bpo-22589 Changed MIME type of .bmp to "image/bmp" (#4756)

Per rfc7903 this is the standard MIME type for this file format, and appears as such in the IANA MIME registry.

files:
A Misc/NEWS.d/next/Library/2017-12-08-15-09-41.bpo-22589.8ouqI6.rst
M Lib/mimetypes.py

diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index 44112027cb9..c86dd6d1345 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -410,7 +410,7 @@ def _default_mime_types():
         '.bat'    : 'text/plain',
         '.bcpio'  : 'application/x-bcpio',
         '.bin'    : 'application/octet-stream',
-        '.bmp'    : 'image/x-ms-bmp',
+        '.bmp'    : 'image/bmp',
         '.c'      : 'text/plain',
         '.cdf'    : 'application/x-netcdf',
         '.cpio'   : 'application/x-cpio',
diff --git a/Misc/NEWS.d/next/Library/2017-12-08-15-09-41.bpo-22589.8ouqI6.rst b/Misc/NEWS.d/next/Library/2017-12-08-15-09-41.bpo-22589.8ouqI6.rst
new file mode 100644
index 00000000000..e8469cba610
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2017-12-08-15-09-41.bpo-22589.8ouqI6.rst
@@ -0,0 +1 @@
+Changed MIME type of .bmp from 'image/x-ms-bmp' to 'image/bmp'



More information about the Python-checkins mailing list