Skip to content

Commit dfa43d5

Browse files
committed
Added application/pdf to PHP CLI Web Server mime types.
1 parent c2b8a72 commit dfa43d5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PHP NEWS
55
- CLI server:
66
. Fixed bug #65633 (built-in server treat some http headers as
77
case-sensitive). (Adam)
8+
. Added application/pdf to PHP CLI Web Server mime types (Chris Jones)
89

910
- Datetime:
1011
. Fixed bug #65502 (DateTimeImmutable::createFromFormat returns DateTime).

sapi/cli/php_cli_server.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ static php_cli_server_ext_mime_type_pair mime_type_map[] = {
268268
{ "jpg", "image/jpeg" },
269269
{ "jpeg", "image/jpeg" },
270270
{ "jpe", "image/jpeg" },
271+
{ "pdf", "application/pdf" },
271272
{ "png", "image/png" },
272273
{ "svg", "image/svg+xml" },
273274
{ "txt", "text/plain" },

0 commit comments

Comments
 (0)