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

This commit is contained in:
Christopher Jones 2013-09-19 20:22:50 -07:00
parent c2b8a72673
commit dfa43d55dd
2 changed files with 2 additions and 0 deletions

1
NEWS
View file

@ -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).

View file

@ -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" },