mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH-15522)
https://bugs.python.org/issue22347
This commit is contained in:
parent
6cd9666ce9
commit
87bd2071c7
4 changed files with 13 additions and 2 deletions
|
@ -742,7 +742,7 @@ class HandlerTests(unittest.TestCase):
|
|||
["foo", "bar"], "", None),
|
||||
("ftp://localhost/baz.gif;type=a",
|
||||
"localhost", ftplib.FTP_PORT, "", "", "A",
|
||||
[], "baz.gif", None), # XXX really this should guess image/gif
|
||||
[], "baz.gif", "image/gif"),
|
||||
]:
|
||||
req = Request(url)
|
||||
req.timeout = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue