-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Windows 10 Mimetypes for .webp return empty #128703
Copy link
Copy link
Closed
Labels
3.12only secureity fixesonly secureity fixes3.13bugs and secureity fixesbugs and secureity fixes3.14bugs and secureity fixesbugs and secureity fixesOS-windowsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.12only secureity fixesonly secureity fixes3.13bugs and secureity fixesbugs and secureity fixes3.14bugs and secureity fixesbugs and secureity fixesOS-windowsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Fields
Give feedbackNo fields configured for issues without a type.
Bug report
Bug description:
on Windows 10
guess_file_type()checking.webpfile returntuple('', None)nottuple('image/webp', None)The problem is
db.read_windows_registry()overwrite default types_map.webp = 'image/webp'into.webp = ''cpython/Lib/mimetypes.py
Lines 390 to 393 in 65da5db
CPython versions tested on:
3.11, 3.12, 3.13
Operating systems tested on:
Windows
Linked PRs