]> granicus.if.org Git - python/commitdiff
bpo-22589 Changed MIME type of .bmp to "image/bmp" (#4756)
authorNitish Chandra <nitishchandrachinta@gmail.com>
Fri, 8 Dec 2017 12:48:44 +0000 (18:18 +0530)
committerR. David Murray <rdmurray@bitdance.com>
Fri, 8 Dec 2017 12:48:44 +0000 (07:48 -0500)
Per rfc7903 this is the standard MIME type for this file format, and appears as such in the IANA MIME registry.

Lib/mimetypes.py
Misc/NEWS.d/next/Library/2017-12-08-15-09-41.bpo-22589.8ouqI6.rst [new file with mode: 0644]

index 44112027cb9aae93cebedbae3c31d0e611e73a57..c86dd6d13457afe79ebaddac8afca30c05c9de1c 100644 (file)
@@ -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 (file)
index 0000000..e8469cb
--- /dev/null
@@ -0,0 +1 @@
+Changed MIME type of .bmp from 'image/x-ms-bmp' to 'image/bmp'