summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-04-09 05:17:53 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-04-09 05:17:53 (GMT)
commit7784888cced3cc75eddf8069d5b4981357d19c4c (patch)
treeab7bd2ae95441d690efa42ca0fc07194a42121d0 /Lib
parent81f8d5771bcd84a20db772652c544f4ff848296a (diff)
downloadcpython-7784888cced3cc75eddf8069d5b4981357d19c4c.zip
cpython-7784888cced3cc75eddf8069d5b4981357d19c4c.tar.gz
cpython-7784888cced3cc75eddf8069d5b4981357d19c4c.tar.bz2
Issue #19377: Add .svg to mimetypes.types_map
This is a backport of caf89a6a17a7.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/mimetypes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index 9f865df..157d455 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',