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.
This commit is contained in:
Terry Reedy 2010-12-23 23:10:28 +00:00
parent 31e8720324
commit d149c6c89c
1 changed files with 3 additions and 1 deletions

View File

@ -374,6 +374,7 @@ def _default_mime_types():
global common_types global common_types
suffix_map = { suffix_map = {
'.svgz': '.svg.gz',
'.tgz': '.tar.gz', '.tgz': '.tar.gz',
'.taz': '.tar.gz', '.taz': '.tar.gz',
'.tz': '.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, # 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 # or extensions, i.e. using the x- prefix
# If you add to these, please keep them sorted! # If you add to these, please keep them sorted!
@ -488,6 +489,7 @@ def _default_mime_types():
'.src' : 'application/x-wais-source', '.src' : 'application/x-wais-source',
'.sv4cpio': 'application/x-sv4cpio', '.sv4cpio': 'application/x-sv4cpio',
'.sv4crc' : 'application/x-sv4crc', '.sv4crc' : 'application/x-sv4crc',
'.svg' : 'image/svg+xml'
'.swf' : 'application/x-shockwave-flash', '.swf' : 'application/x-shockwave-flash',
'.t' : 'application/x-troff', '.t' : 'application/x-troff',
'.tar' : 'application/x-tar', '.tar' : 'application/x-tar',