Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> added the comment: So for excel, 'application/excel' is not listed at http://www.iana.org/assignments/media-types as suggested by the comment at: https://github.com/python/cpython/blob/master/Lib/mimetypes.py#L397 whereas 'applicaton/vnd.ms-excel' is listed. See also https://stackoverflow.com/questions/974079/setting-mime-type-for-excel-document.
For cdf, Wolframalpha is using application/cdf it seems (without it being registered) whereas NetCDF suggests application/x-netcdf so that seems reasonable (and is the current value). For context, these duplicates were introduced here: https://github.com/python/cpython/commit/a3689fe78675c89d5979c0c5acdb1c173cc75ed6 and noted first here: https://github.com/python/cpython/commit/107771a228ee73b4683242cb696e3024f93b74d5 ---------- nosy: +Henk-Jaap Wagenaar title: Duplicated keys, but with different values in dictionary literals -> Duplicated keys in MIME type_map with different values _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31867> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com