diff options
author | Terry Reedy <tjreedy@udel.edu> | 2010-12-23 23:10:28 (GMT) |
---|---|---|
committer | Terry Reedy <tjreedy@udel.edu> | 2010-12-23 23:10:28 (GMT) |
commit | d149c6c89cdd693123bf2f822516204a0e81185c (patch) | |
tree | 97028789020074f763df792d7cfa816e1db5cd5e /Lib/mimetypes.py | |
parent | 31e87203248047aa99ddbb4165b3b20c758196d8 (diff) | |
download | cpython-d149c6c89cdd693123bf2f822516204a0e81185c.zip cpython-d149c6c89cdd693123bf2f822516204a0e81185c.tar.gz cpython-d149c6c89cdd693123bf2f822516204a0e81185c.tar.bz2 |
Issue 10730: mimetypes module - add .svgz to mimetypes.suffix_map and .svg to types_map.
Addition OKed by GB on IRC (R. David Murray). No backport.
Diffstat (limited to 'Lib/mimetypes.py')
-rw-r--r-- | Lib/mimetypes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 745b19f..60a4109 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -374,6 +374,7 @@ def _default_mime_types(): global common_types suffix_map = { + '.svgz': '.svg.gz', '.tgz': '.tar.gz', '.taz': '.tar.gz', '.tz': '.tar.gz', @@ -387,7 +388,7 @@ def _default_mime_types(): } # Before adding new types, make sure they are either registered with IANA, - # at http://www.isi.edu/in-notes/iana/assignments/media-types + # at http://www.iana.org/assignments/media-types # or extensions, i.e. using the x- prefix # If you add to these, please keep them sorted! @@ -488,6 +489,7 @@ def _default_mime_types(): '.src' : 'application/x-wais-source', '.sv4cpio': 'application/x-sv4cpio', '.sv4crc' : 'application/x-sv4crc', + '.svg' : 'image/svg+xml' '.swf' : 'application/x-shockwave-flash', '.t' : 'application/x-troff', '.tar' : 'application/x-tar', |