Commit 2baea2e2 authored by Sidnei da Silva's avatar Sidnei da Silva

Corrected mime-type for XUL and XSL

parent 8e8798e7
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
"""A utility module for content-type handling.""" """A utility module for content-type handling."""
__version__='$Revision: 1.18 $'[11:-2] __version__='$Revision: 1.19 $'[11:-2]
import re, mimetypes import re, mimetypes
...@@ -70,8 +70,8 @@ _addtypes=( ...@@ -70,8 +70,8 @@ _addtypes=(
('.mpa', 'video/mpeg'), ('.mpa', 'video/mpeg'),
('.vcf', 'text/x-vcard'), ('.vcf', 'text/x-vcard'),
('.xml', 'text/xml'), ('.xml', 'text/xml'),
('.xsl', 'text/xsl'), ('.xsl', 'text/xml'),
('.xul', 'text/xul'), ('.xul', 'application/vnd.mozilla.xul+xml'),
) )
for name, val in _addtypes: for name, val in _addtypes:
mimetypes.types_map[name]=val mimetypes.types_map[name]=val
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment