Skip to content

Commit e5b1ebc

Browse files
pascalchevrellstrojny
authored andcommitted
update list of common Mime Types in PHP development server to support Web audio/video formats (Webm ,and Ogg containers) + have jpeg mime types listed together
1 parent 77c4b84 commit e5b1ebc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sapi/cli/php_cli_server.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,13 @@ static php_cli_server_ext_mime_type_pair mime_type_map[] = {
259259
{ "gif", "image/gif" },
260260
{ "jpg", "image/jpeg" },
261261
{ "jpeg", "image/jpeg" },
262-
{ "png", "image/png" },
263262
{ "jpe", "image/jpeg" },
263+
{ "png", "image/png" },
264264
{ "svg", "image/svg+xml" },
265265
{ "txt", "text/plain" },
266+
{ "webm", "video/webm" },
267+
{ "ogv", "video/ogg" },
268+
{ "ogg", "audio/ogg" },
266269
{ NULL, NULL }
267270
};
268271

0 commit comments

Comments
 (0)