Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d149c6c

Browse files
committed
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.
1 parent 31e8720 commit d149c6c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/mimetypes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ def _default_mime_types():
374374
global common_types
375375

376376
suffix_map = {
377+
'.svgz': '.svg.gz',
377378
'.tgz': '.tar.gz',
378379
'.taz': '.tar.gz',
379380
'.tz': '.tar.gz',
@@ -387,7 +388,7 @@ def _default_mime_types():
387388
}
388389

389390
# Before adding new types, make sure they are either registered with IANA,
390-
# at http://www.isi.edu/in-notes/iana/assignments/media-types
391+
# at http://www.iana.org/assignments/media-types
391392
# or extensions, i.e. using the x- prefix
392393

393394
# If you add to these, please keep them sorted!
@@ -488,6 +489,7 @@ def _default_mime_types():
488489
'.src' : 'application/x-wais-source',
489490
'.sv4cpio': 'application/x-sv4cpio',
490491
'.sv4crc' : 'application/x-sv4crc',
492+
'.svg' : 'image/svg+xml'
491493
'.swf' : 'application/x-shockwave-flash',
492494
'.t' : 'application/x-troff',
493495
'.tar' : 'application/x-tar',

0 commit comments

Comments
 (0)