Issue 29823: mimetypes guesses XSL mimetype when passed an XML file (original) (raw)
Issue29823
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) | Date: 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) * ![]() |
Date: 2017-03-16 04:25 |
Perhaps a duplicate of Issue 1043134? |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:44 | admin | set | github: 74009 |
2017-05-08 22:17:56 | martin.panter | set | status: open -> closedresolution: duplicatestage: resolved |
2017-03-16 04:25:15 | martin.panter | set | versions: - Python 3.3, Python 3.4nosy: + martin.pantermessages: + superseder: Add preferred extensions for MIME types |
2017-03-16 03:53:49 | Aleksey Bilogur | set | title: ython guesses XSL mimetype when passed an XML file -> mimetypes guesses XSL mimetype when passed an XML file |
2017-03-16 03:53:24 | Aleksey Bilogur | create |