Browse Source

[mime.conf] add text/markdown to utf-8 list, regenerate mime.conf

personal/stbuehler/mod-csrf
Stefan Bühler 5 years ago
committed by Glenn Strauss
parent
commit
1c3e7095d9
  1. 7
      doc/config/conf.d/mime.conf
  2. 3
      doc/scripts/create-mime.conf.pl

7
doc/config/conf.d/mime.conf

@ -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",

3
doc/scripts/create-mime.conf.pl

@ -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…
Cancel
Save