[wp-trac] [WordPress Trac] #52181: wrong mimetime for gzip files
WordPress Trac
noreply at wordpress.org
Sun Dec 27 22:47:17 UTC 2020
#52181: wrong mimetime for gzip files
--------------------------+-----------------------------
Reporter: liedekef | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.6
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In the file wp-includes/functions.php, function wp_get_mime_types(), the
mimetype for gz|gzip is indicated as "application/x-gzip", while fileinfo
(and /etc/mimetypes) return "application/gzip".
Also, it seems this line is missing tgz, so I would suggest changing this
from:
{{{
'gz|gzip' => 'application/x-gzip',
}}}
to:
{{{
'gz|gzip|tgz' => 'application/gzip',
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52181>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list