pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/pull/148782

ets/global-b40ec823a1a6a1af.css" /> gh-92455: Respect case-sensitive mimetype suffixes by yuanx749 · Pull Request #148782 · python/cpython · GitHub
Skip to content

gh-92455: Respect case-sensitive mimetype suffixes#148782

Open
yuanx749 wants to merge 3 commits intopython:mainfrom
yuanx749:fix-mimetypes-case-sensitive-add-type
Open

gh-92455: Respect case-sensitive mimetype suffixes#148782
yuanx749 wants to merge 3 commits intopython:mainfrom
yuanx749:fix-mimetypes-case-sensitive-add-type

Conversation

@yuanx749
Copy link
Copy Markdown
Contributor

Fixes gh-92455.

As described in the issue, the current implementation cannot find uppercase
extensions added via mimetypes.add_type(). This appears to be a regression from gh-30229.

This restores the lookup order documented for mimetypes.guess_type():
type suffixes are tried case-sensitively first, then case-insensitively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy