Commit:    dfa43d55dd996fb06c7bb4d5efcae3fc78131cdc
Author:    Christopher Jones <s...@php.net>         Thu, 19 Sep 2013 20:22:50 
-0700
Parents:   c2b8a726737e0046eb72be535fdb4fb8dca57f3b
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=dfa43d55dd996fb06c7bb4d5efcae3fc78131cdc

Log:
Added application/pdf to PHP CLI Web Server mime types.

Changed paths:
  M  NEWS
  M  sapi/cli/php_cli_server.c


Diff:
diff --git a/NEWS b/NEWS
index 37db7e6..7b37e07 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ PHP                                                             
           NEWS
 - CLI server:
   . Fixed bug #65633 (built-in server treat some http headers as
     case-sensitive). (Adam)
+  . Added application/pdf to PHP CLI Web Server mime types (Chris Jones)
 
 - Datetime:
   . Fixed bug #65502 (DateTimeImmutable::createFromFormat returns DateTime).
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
index d50cc4f..e84d9ea 100644
--- a/sapi/cli/php_cli_server.c
+++ b/sapi/cli/php_cli_server.c
@@ -268,6 +268,7 @@ static php_cli_server_ext_mime_type_pair mime_type_map[] = {
        { "jpg", "image/jpeg" },
        { "jpeg", "image/jpeg" },
        { "jpe", "image/jpeg" },
+       { "pdf", "application/pdf" },
        { "png", "image/png" },
        { "svg", "image/svg+xml" },
        { "txt", "text/plain" },


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to