mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
bpo-40626: Support HDF5 in mimetypes (GH-20042)
Add hdf5 with .h5 file extension See 'Recommendations' section for mime types from the HDF group: https://www.hdfgroup.org/2018/06/citations-for-hdf-data-and-software/ Patch by Mark Schwab.
This commit is contained in:
parent
46398fba4d
commit
60c2a810e3
2 changed files with 2 additions and 0 deletions
|
@ -448,6 +448,7 @@ def _default_mime_types():
|
||||||
'.dvi' : 'application/x-dvi',
|
'.dvi' : 'application/x-dvi',
|
||||||
'.gtar' : 'application/x-gtar',
|
'.gtar' : 'application/x-gtar',
|
||||||
'.hdf' : 'application/x-hdf',
|
'.hdf' : 'application/x-hdf',
|
||||||
|
'.h5' : 'application/x-hdf5',
|
||||||
'.latex' : 'application/x-latex',
|
'.latex' : 'application/x-latex',
|
||||||
'.mif' : 'application/x-mif',
|
'.mif' : 'application/x-mif',
|
||||||
'.cdf' : 'application/x-netcdf',
|
'.cdf' : 'application/x-netcdf',
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Add h5 file extension as MIME Type application/x-hdf5, as per HDF Group recommendation for HDF5 formatted data files. Patch contributed by Mark Schwab.
|
Loading…
Add table
Add a link
Reference in a new issue