[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-08 Thread R. David Murray
R. David Murray added the comment: Thanks, nitishch. As I said, I'm not going to backport this unless someone advances an argument in favor that discusses the possible backward compatibility issue. (I'm not sure there are any significant ones, but someone needs to

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-08 Thread R. David Murray
R. David Murray added the comment: New changeset ede157331b4f9e550334900b3b4de1c8590688de by R. David Murray (Nitish Chandra) in branch 'master': bpo-22589 Changed MIME type of .bmp to "image/bmp" (#4756)

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-08 Thread Nitish
Change by Nitish : -- nosy: +nitishch ___ Python tracker ___ ___

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-08 Thread Nitish
Change by Nitish : -- keywords: +patch pull_requests: +4659 stage: -> patch review ___ Python tracker ___

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread R. David Murray
R. David Murray added the comment: That's the basis, but its a bit more complicated than that (NEWS item, putting bpo-22589 in the issue title, the question of signing a CLA, though a CLA doesn't really matter for this kind of change IMO). If you can't do it one of

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt
Jonathan Watt added the comment: I'm unfamiliar with the Python contribution procedures. If it's simply a case of cloning from github.com and putting up a PR then I can do that. I'm overloaded currently though, so if it's more involved than that it may take me a while to

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt
Jonathan Watt added the comment: > If image/bmp is now[*] the official IANA type You can find image/bmp here: https://www.iana.org/assignments/media-types/media-types.xhtml#image -- ___ Python tracker

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread R. David Murray
R. David Murray added the comment: If image/bmp is now[*] the official IANA type, mimetypes should use that. However, because this is a change with possible backward compatibility issues, it should probably only go into 3.7, but I'm open to arguments about that. [*]

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt
Jonathan Watt added the comment: I should note that while Chrome will refuse to open an image/x-ms-bmp file directly, when loaded as an image embedded in a document (e.g. via HTML's ) then Chrome doesn't care what MIME type it has. It will sniff the image stream and detect

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt
Jonathan Watt added the comment: Using image/x-ms-bmp because that's all that IE7 supports makes no sense. Chrome doesn't support image/x-ms-bmp (it only supports the official IANA type image/bmp), so if the concern is over browser support then it's clear that Chrome (the

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2014-10-09 Thread Brian Matthews
New submission from Brian Matthews: In the file mimetypes.py the mime type for bmp files should be image/bmp for IE8 and later. the problem is that if the content header for 'nosniff' is set, then the bmp file fails to display due to the incorrect mime type. -- components: IO