This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: mimetypes guesses XSL mimetype when passed an XML file
类型: Stage: resolved
Components: Library (Lib) Versions: Python 3.7, Python 3.6, Python 3.5, Python 2.7
process
状态: closed Resolution: duplicate
Dependencies: 后续: Add preferred extensions for MIME types
View: 1043134
分配给: 抄送列表: Aleksey Bilogur, martin.panter
优先级: normal 关键字:

Created on 2017-03-16 03:53 by Aleksey Bilogur, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg289705 - (view) Author: Aleksey Bilogur (Aleksey Bilogur) 日期: 2017-03-16 03:53
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?
msg289706 - (view) Author: Martin Panter (martin.panter) * (Python committer) 日期: 2017-03-16 04:25
Perhaps a duplicate of Issue 1043134?
历史
日期 用户 动作 参数
2022-04-11 14:58:44admin修改github: 74009
2017-05-08 22:17:56martin.panter修改状态: open -> closed
resolution: duplicate
stage: resolved
2017-03-16 04:25:15martin.panter修改versions: - Python 3.3, Python 3.4
抄送: + martin.panter

消息: + msg289706

后续: Add preferred extensions for MIME types
2017-03-16 03:53:49Aleksey Bilogur修改标题: ython guesses XSL mimetype when passed an XML file -> mimetypes guesses XSL mimetype when passed an XML file
2017-03-16 03:53:24Aleksey Bilogur创建