From: Berker Peksag Date: Sat, 9 Apr 2016 05:17:53 +0000 (+0300) Subject: Issue #19377: Add .svg to mimetypes.types_map X-Git-Tag: v2.7.12rc1~140 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7784888cced3cc75eddf8069d5b4981357d19c4c;p=thirdparty%2FPython%2Fcpython.git Issue #19377: Add .svg to mimetypes.types_map This is a backport of caf89a6a17a7. --- diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 9f865df1eb1c..157d455521d1 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 597eb2bc453e..7219c5e8094a 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'.