diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 9f865df1eb1..157d455521d 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -382,6 +382,7 @@ def _default_mime_types(): global common_types suffix_map = { + '.svgz': '.svg.gz', '.tgz': '.tar.gz', '.taz': '.tar.gz', '.tz': '.tar.gz', @@ -500,6 +501,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', diff --git a/Misc/NEWS b/Misc/NEWS index 597eb2bc453..7219c5e8094 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -65,6 +65,8 @@ Core and Builtins Library ------- +- Issue #19377: Add .svg to mimetypes.types_map. + - Issue #13952: Add .csv to mimetypes.types_map. Patch by Geoff Wilson. - Issue #16329: Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'.