summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Rinne <thorsten@phpmyfaq.de>2015-11-11 08:34:36 +0100
committerAnatol Belski <ab@php.net>2015-11-17 13:19:47 +0100
commit03b0733a4992fda7d93e49cd2d04f147150cc4db (patch)
tree7be17d6e98358aca277b70ba738a7543673ffbbd
parentb29f1dba436842d8105e1502c2ab8d0ed18fbc16 (diff)
downloadphp-git-03b0733a4992fda7d93e49cd2d04f147150cc4db.tar.gz
Added support for CSS/JavaScript source maps
Source maps (http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/) are basically a way to map a combined/minified file back to an unbuilt state. To avoid error messages in Browser DevTools, source map files should be served with the MIME type "application/json"
-rw-r--r--sapi/cli/mime_type_map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sapi/cli/mime_type_map.h b/sapi/cli/mime_type_map.h
index e82fc3fd7f..b9dd6ef759 100644
--- a/sapi/cli/mime_type_map.h
+++ b/sapi/cli/mime_type_map.h
@@ -71,6 +71,7 @@ static php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "ma", "application/mathematica" },
{ "nb", "application/mathematica" },
{ "mb", "application/mathematica" },
+ { "map", "application/json" },
{ "mathml", "application/mathml+xml" },
{ "mbox", "application/mbox" },
{ "mscml", "application/mediaservercontrol+xml" },