php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch php_cli_server.c.patch for Built-in web server Bug #61977

Patch version 2012-05-08 20:51 UTC

Return to Bug #61977 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions: 2012-05-08 21:00 UTC | 2012-05-08 20:51 UTC

Developer: sixd

Line 1 (now 1), was 15 lines, now 12 lines

  diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
 index 0850425..a937458 100644
 index 0850425..9fbc0c1 100644
  --- a/sapi/cli/php_cli_server.c
  +++ b/sapi/cli/php_cli_server.c
 @@ -257,8 +257,10 @@ static php_cli_server_ext_mime_type_pair mime_type_map[] = {
 @@ -257,6 +257,7 @@ static php_cli_server_ext_mime_type_pair mime_type_map[] = {
   	{ "jpg", "image/jpeg" },
   	{ "jpeg", "image/jpeg" },
   	{ "css", "text/css" },
  +	{ "htm", "text/html" },
   	{ "html", "text/html" },
   	{ "txt", "text/plain" },
 +	{ "svg", "image/svg+xml" },
   	{ "js", "text/javascript" },
  	{ NULL, NULL }
  };
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 18:01:58 2014 UTC