[issue41738] MIME type for *.zip becomes application/x-zip-compressed on Windows

Danny Lin report at bugs.python.org
Mon Sep 7 11:45:21 EDT 2020


New submission from Danny Lin <danny0838 at gmail.com>:

On Windows, command "python -m mimetypes foo.zip" outputs "type: application/x-zip-compressed encoding: None", while it's "type: application/zip encoding: None" on Linux.

According to the mimetype.py in CPython source code, the MIME type for '.zip' is 'application/zip'. It seems to be overwritten somewhere on Windows.

----------
components: Windows
messages: 376508
nosy: danny87105, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: MIME type for *.zip becomes application/x-zip-compressed on Windows
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41738>
_______________________________________


More information about the Python-bugs-list mailing list