com php-src: 76363: added jsm extension to list of mime types: sapi/cli/generate_mime_type_map.php sapi/cli/mime_t ype_map.h

From: Date: Wed, 06 Jun 2018 14:04:42 +0000
Subject: com php-src: 76363: added jsm extension to list of mime types: sapi/cli/generate_mime_type_map.php sapi/cli/mime_t ype_map.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102200@lists.php.net to get a copy of this message
Commit: 48c954ca46d0c1e00d60ae882e49425c3efa0c04 Author: pmukhin <pavel.mukhin@agoda.com> Wed, 6 Jun 2018 21:04:42 +0700 Parents: e17fc0d73c611ad0207cac8a4a01ded38251a7dc Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=48c954ca46d0c1e00d60ae882e49425c3efa0c04 Log: 76363: added jsm extension to list of mime types Changed paths: M sapi/cli/generate_mime_type_map.php M sapi/cli/mime_type_map.h Diff: diff --git a/sapi/cli/generate_mime_type_map.php b/sapi/cli/generate_mime_type_map.php index 13ae59d..6367b2f 100644 --- a/sapi/cli/generate_mime_type_map.php +++ b/sapi/cli/generate_mime_type_map.php @@ -29,6 +29,7 @@ array_walk($types, function ($line) use (&$extensions) { $additional_mime_maps = [ "map" => "application/json", // from commit: a0d62f08ae8cbebc88e5c92e08fca8d0cdc7309d + "jsm" => "application/javascript", ]; foreach($additional_mime_maps as $ext => $mime) { diff --git a/sapi/cli/mime_type_map.h b/sapi/cli/mime_type_map.h index 904ef86..249d982 100644 --- a/sapi/cli/mime_type_map.h +++ b/sapi/cli/mime_type_map.h @@ -27,7 +27,7 @@ typedef struct php_cli_server_ext_mime_type_pair { const char *mime_type; } php_cli_server_ext_mime_type_pair; -static const php_cli_server_ext_mime_type_pair mime_type_map[] = { +static php_cli_server_ext_mime_type_pair mime_type_map[] = { { "ez", "application/andrew-inset" }, { "aw", "application/applixware" }, { "atom", "application/atom+xml" }, @@ -635,16 +635,12 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = { { "bdf", "application/x-font-bdf" }, { "gsf", "application/x-font-ghostscript" }, { "psf", "application/x-font-linux-psf" }, - { "otf", "application/x-font-otf" }, { "pcf", "application/x-font-pcf" }, { "snf", "application/x-font-snf" }, - { "ttf", "application/x-font-ttf" }, - { "ttc", "application/x-font-ttf" }, { "pfa", "application/x-font-type1" }, { "pfb", "application/x-font-type1" }, { "pfm", "application/x-font-type1" }, { "afm", "application/x-font-type1" }, - { "woff", "application/font-woff" }, { "arc", "application/x-freearc" }, { "spl", "application/x-futuresplash" }, { "gca", "application/x-gca-compressed" }, @@ -758,6 +754,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = { { "midi", "audio/midi" }, { "kar", "audio/midi" }, { "rmi", "audio/midi" }, + { "m4a", "audio/mp4" }, { "mp4a", "audio/mp4" }, { "mpga", "audio/mpeg" }, { "mp2", "audio/mpeg" }, @@ -804,6 +801,11 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = { { "cml", "chemical/x-cml" }, { "csml", "chemical/x-csml" }, { "xyz", "chemical/x-xyz" }, + { "ttc", "font/collection" }, + { "otf", "font/otf" }, + { "ttf", "font/ttf" }, + { "woff", "font/woff" }, + { "woff2", "font/woff2" }, { "bmp", "image/bmp" }, { "cgm", "image/cgm" }, { "g3", "image/g3fax" }, @@ -825,9 +827,9 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = { { "uvvi", "image/vnd.dece.graphic" }, { "uvg", "image/vnd.dece.graphic" }, { "uvvg", "image/vnd.dece..graphic" }, - { "sub", "text/vnd.dvb.subtitle" }, { "djvu", "image/vnd.djvu" }, { "djv", "image/vnd.djvu" }, + { "sub", "text/vnd..dvb.subtitle" }, { "dwg", "image/vnd.dwg" }, { "dxf", "image/vnd.dxf" }, { "fbs", "image/vnd.fastbidsheet" }, @@ -917,8 +919,8 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = { { "vcard", "text/vcard" }, { "curl", "text/vnd.curl" }, { "dcurl", "text/vnd.curl.dcurl" }, - { "scurl", "text/vnd.curl.scurl" }, { "mcurl", "text/vnd.curl.mcurl" }, + { "scurl", "text/vnd.curl.scurl" }, { "fly", "text/vnd.fly" }, { "flx", "text/vnd.fmi.flexstor" }, { "gv", "text/vnd.graphviz" }, @@ -941,10 +943,10 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = { { "f77", "text/x-fortran" }, { "f90", "text/x-fortran" }, { "java", "text/x-java-source" }, + { "nfo", "text/x-nfo" }, { "opml", "text/x-opml" }, { "p", "text/x-pascal" }, { "pas", "text/x-pascal" }, - { "nfo", "text/x-nfo" }, { "etx", "text/x-setext" }, { "sfv", "text/x-sfv" }, { "uu", "text/x-uuencode" }, @@ -1010,6 +1012,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = { { "smv", "video/x-smv" }, { "ice", "x-conference/x-cooltalk" }, { "map", "application/json" }, + { "jsm", "application/javascript" }, { NULL, NULL } };

« previous php.cvs (#102200) next »