File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 27
27
}
28
28
});
29
29
30
+ $ additional_mime_maps = [
31
+ "map " => "application/json " , // from commit: a0d62f08ae8cbebc88e5c92e08fca8d0cdc7309d
32
+ ];
33
+
34
+ foreach ($ additional_mime_maps as $ ext => $ mime ) {
35
+ if (!isset ($ extensions [$ ext ])) {
36
+ $ extensions [$ ext ] = $ mime ;
37
+ } else {
38
+ printf (STDERR , "Ignored exist mime type: $ ext => $ mime \n" );
39
+ }
40
+ }
41
+
30
42
?>
31
43
/*
32
44
+----------------------------------------------------------------------+
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ static php_cli_server_ext_mime_type_pair mime_type_map[] = {
71
71
{ "ma" , "application/mathematica" },
72
72
{ "nb" , "application/mathematica" },
73
73
{ "mb" , "application/mathematica" },
74
- { "map" , "application/json" },
75
74
{ "mathml" , "application/mathml+xml" },
76
75
{ "mbox" , "application/mbox" },
77
76
{ "mscml" , "application/mediaservercontrol+xml" },
@@ -1010,6 +1009,7 @@ static php_cli_server_ext_mime_type_pair mime_type_map[] = {
1010
1009
{ "movie" , "video/x-sgi-movie" },
1011
1010
{ "smv" , "video/x-smv" },
1012
1011
{ "ice" , "x-conference/x-cooltalk" },
1012
+ { "map" , "application/json" },
1013
1013
{ NULL , NULL }
1014
1014
};
1015
1015
You can’t perform that action at this time.
0 commit comments