[mime.conf] add text/markdown to utf-8 list, regenerate mime.conf
This commit is contained in:
parent
0ae6bab4a9
commit
1c3e7095d9
|
@ -76,7 +76,10 @@ mimetype.assign = (
|
|||
".mxf" => "application/mxf",
|
||||
".asn" => "application/octet-stream",
|
||||
".bin" => "application/octet-stream",
|
||||
".deploy" => "application/octet-stream",
|
||||
".ent" => "application/octet-stream",
|
||||
".msp" => "application/octet-stream",
|
||||
".msu" => "application/octet-stream",
|
||||
".oda" => "application/oda",
|
||||
".opf" => "application/oebps-package+xml",
|
||||
".ogx" => "application/ogg",
|
||||
|
@ -263,6 +266,8 @@ mimetype.assign = (
|
|||
".maker" => "application/x-maker",
|
||||
".mif" => "application/x-mif",
|
||||
".m3u8" => "application/x-mpegURL",
|
||||
".application" => "application/x-ms-application",
|
||||
".manifest" => "application/x-ms-manifest",
|
||||
".wmd" => "application/x-ms-wmd",
|
||||
".wmz" => "application/x-ms-wmz",
|
||||
".bat" => "application/x-msdos-program",
|
||||
|
@ -485,6 +490,8 @@ mimetype.assign = (
|
|||
".html" => "text/html",
|
||||
".shtml" => "text/html",
|
||||
".uls" => "text/iuls",
|
||||
".markdown" => "text/markdown; charset=utf-8",
|
||||
".md" => "text/markdown; charset=utf-8",
|
||||
".mml" => "text/mathml",
|
||||
".asc" => "text/plain; charset=utf-8",
|
||||
".brf" => "text/plain; charset=utf-8",
|
||||
|
|
|
@ -9,9 +9,12 @@ use strict;
|
|||
# text/html IS NOT INCLUDED: html has its own method for defining charset
|
||||
# (<meta>), but the standards specify that content-type in HTTP wins over
|
||||
# the setting in the html document.
|
||||
# text/markdown doesn't have an official default charset, but requires
|
||||
# one being specified - it seems reasonable to hardcode it to UTF-8
|
||||
my %text_utf8 = map { $_ => 1 } qw(
|
||||
css
|
||||
csv
|
||||
markdown
|
||||
plain
|
||||
x-bibtex
|
||||
x-boo
|
||||
|
|
Loading…
Reference in New Issue