]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #19377: Add .svg to mimetypes.types_map
authorBerker Peksag <berker.peksag@gmail.com>
Sat, 9 Apr 2016 05:17:53 +0000 (08:17 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Sat, 9 Apr 2016 05:17:53 +0000 (08:17 +0300)
This is a backport of caf89a6a17a7.

Lib/mimetypes.py
Misc/NEWS

index 9f865df1eb1c0afbc5799275825e7fdf9295c3cb..157d455521d1874e251e5f445599ba26afb23cbb 100644 (file)
@@ -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',
index 597eb2bc453e3461c02163602cc024f7988a0d76..7219c5e8094abe98a4dbafeed3fd53f96ff6bdaa 100644 (file)
--- 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'.