diff options
author | Xinchen Hui <laruence@php.net> | 2012-05-09 11:27:39 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2012-05-09 11:27:39 +0800 |
commit | 1e60d0c105f065f395b5ae02608eaec9b42708f8 (patch) | |
tree | bf965dd687e07f53483da789cd519c3ff2a708a6 /sapi/cli/php_cli_server.c | |
parent | 7b2ab569976f63b22ba1c69e78e782a693d5076a (diff) | |
download | php-git-1e60d0c105f065f395b5ae02608eaec9b42708f8.tar.gz |
Implemented FR #61977 (Need CLI web-server support for files with .htm & svg extensions)
Diffstat (limited to 'sapi/cli/php_cli_server.c')
-rw-r--r-- | sapi/cli/php_cli_server.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index e052aa8dd6..87ab7b48f4 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -251,15 +251,17 @@ static php_cli_server_http_reponse_status_code_pair template_map[] = { }; static php_cli_server_ext_mime_type_pair mime_type_map[] = { + { "html", "text/html" }, + { "htm", "text/html" }, + { "js", "text/javascript" }, + { "css", "text/css" }, { "gif", "image/gif" }, - { "png", "image/png" }, - { "jpe", "image/jpeg" }, { "jpg", "image/jpeg" }, { "jpeg", "image/jpeg" }, - { "css", "text/css" }, - { "html", "text/html" }, + { "png", "image/png" }, + { "jpe", "image/jpeg" }, + { "svg", "image/svg+xml" }, { "txt", "text/plain" }, - { "js", "text/javascript" }, { NULL, NULL } }; |