[New-bugs-announce] [issue29823] ython guesses XSL mimetype when passed an XML file

Aleksey Bilogur report at bugs.python.org
Wed Mar 15 23:53:24 EDT 2017


New submission from Aleksey Bilogur:

Copied over from an unanswered StackOverflow thread (http://stackoverflow.com/questions/42542433/why-does-python-mimetype-guess-xsl-when-passed-an-xml-file):

When passed a file with a mimetype application/xml, the Python std lib mimetypes.guess_extension method guesses an .xsl extension. This is actually hard-coded in.

This seems wrong to me. But what do I know?

----------
components: Library (Lib)
messages: 289705
nosy: Aleksey Bilogur
priority: normal
severity: normal
status: open
title: ython guesses XSL mimetype when passed an XML file
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29823>
_______________________________________


More information about the New-bugs-announce mailing list