Skip to content

Commit 4886f13

Browse files
committed
Document mimetypes case lookup
1 parent 6f639f2 commit 4886f13

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/library/mimetypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ the information :func:`init` sets up.
3939
(e.g. :program:`compress` or :program:`gzip`). The encoding is suitable for use
4040
as a :mailheader:`Content-Encoding` header, **not** as a
4141
:mailheader:`Content-Transfer-Encoding` header. The mappings are table driven.
42-
Encoding suffixes are case sensitive; type suffixes are first tried case
43-
sensitively, then case insensitively.
42+
Encoding suffixes are case sensitive. Suffix mappings and type suffixes are
43+
first tried case sensitively, then case insensitively.
4444

4545
The optional *strict* argument is a flag specifying whether the list of known MIME types
4646
is limited to only the official types `registered with IANA
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Fix :mod:`mimetypes` to prefer case-sensitive matches for MIME type suffixes
2-
registered with :func:`mimetypes.add_type` before falling back to
3-
case-insensitive matches. Contributed by Xiao Yuan.
1+
Fix :mod:`mimetypes` to prefer case-sensitive matches for suffix mappings and
2+
MIME type suffixes before falling back to case-insensitive matches.
3+
Contributed by Xiao Yuan.

0 commit comments

Comments
 (0)