diff options
author | Ka-Ping Yee <ping@zesty.ca> | 2001-08-18 04:06:54 (GMT) |
---|---|---|
committer | Ka-Ping Yee <ping@zesty.ca> | 2001-08-18 04:06:54 (GMT) |
commit | 6cb0d4c632eb3a502d3097b133c1056788dc9b2c (patch) | |
tree | 662b0e8fdd3265cc22a950da5e9cd6679a39fa03 | |
parent | 6b5a48d48ea15c1364b2fbc8552f50ebf72fa64a (diff) | |
download | cpython-6cb0d4c632eb3a502d3097b133c1056788dc9b2c.zip cpython-6cb0d4c632eb3a502d3097b133c1056788dc9b2c.tar.gz cpython-6cb0d4c632eb3a502d3097b133c1056788dc9b2c.tar.bz2 |
Add some fairly important file extensions: bmp css doc mid midi mp2 mp3 xls.
Entries taken from the standard Debian mime.types file.
-rw-r--r-- | Lib/mimetypes.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index c53c33c..1d5851a 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -230,10 +230,13 @@ types_map = { '.avi': 'video/x-msvideo', '.bcpio': 'application/x-bcpio', '.bin': 'application/octet-stream', + '.bmp': 'image/x-ms-bmp', '.cdf': 'application/x-netcdf', '.cpio': 'application/x-cpio', '.csh': 'application/x-csh', + '.css': 'text/css', '.dll': 'application/octet-stream', + '.doc': 'application/msword', '.dvi': 'application/x-dvi', '.exe': 'application/octet-stream', '.eps': 'application/postscript', @@ -251,9 +254,13 @@ types_map = { '.latex': 'application/x-latex', '.man': 'application/x-troff-man', '.me': 'application/x-troff-me', + '.mid': 'audio/midi', + '.midi': 'audio/midi', '.mif': 'application/x-mif', '.mov': 'video/quicktime', '.movie': 'video/x-sgi-movie', + '.mp2': 'audio/mpeg', + '.mp3': 'audio/mpeg', '.mpe': 'video/mpeg', '.mpeg': 'video/mpeg', '.mpg': 'video/mpeg', @@ -302,6 +309,7 @@ types_map = { '.ustar': 'application/x-ustar', '.wav': 'audio/x-wav', '.xbm': 'image/x-xbitmap', + '.xls': 'application/excel', '.xml': 'text/xml', '.xsl': 'application/xml', '.xpm': 'image/x-xpixmap', |