From 1e60d0c105f065f395b5ae02608eaec9b42708f8 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Wed, 9 May 2012 11:27:39 +0800 Subject: Implemented FR #61977 (Need CLI web-server support for files with .htm & svg extensions) --- sapi/cli/php_cli_server.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sapi/cli/php_cli_server.c') 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 } }; -- cgit v1.2.1