]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-66543: Fix mimetype.guess_type() (GH-117217)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 26 Mar 2024 11:26:45 +0000 (13:26 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Mar 2024 11:26:45 +0000 (13:26 +0200)
commit9654daf793b534b44a831c80f43505ab9e380f1f
treed048cb8721453df642d49c074de516f1d7a8bee3
parent8bef34f625e21886b1c64544c060e19ee2e229bf
gh-66543: Fix mimetype.guess_type() (GH-117217)

Fix parsing of the following corner cases:

* URLs with only a host name
* URLs containing a fragment
* URLs containing a query
* filenames with only a UNC sharepoint on Windows

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Lib/mimetypes.py
Lib/test/test_mimetypes.py
Lib/test/test_urllib2.py
Misc/NEWS.d/next/Library/2019-08-27-01-03-26.gh-issue-66543._TRpYr.rst [new file with mode: 0644]