File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments