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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29823>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com