mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Add mimetypes, sort them, remove lots of whitespace from the middle.
This commit is contained in:
parent
ff152e87ef
commit
cad637254a
@ -264,17 +264,23 @@ static gid_t drop_gid = INVALID_GID;
|
|||||||
|
|
||||||
/* Default mimetype mappings - make sure this array is NULL terminated. */
|
/* Default mimetype mappings - make sure this array is NULL terminated. */
|
||||||
static const char *default_extension_map[] = {
|
static const char *default_extension_map[] = {
|
||||||
"text/html html htm",
|
"application/ogg" " ogg",
|
||||||
"image/png png",
|
"application/pdf" " pdf",
|
||||||
"image/jpeg jpeg jpe jpg",
|
"application/xml" " xsl xml",
|
||||||
"image/gif gif",
|
"application/xml-dtd" " dtd",
|
||||||
"audio/mpeg mp2 mp3 mpga",
|
"application/xslt+xml" " xslt",
|
||||||
"application/ogg ogg",
|
"application/zip" " zip",
|
||||||
"text/css css",
|
"audio/mpeg" " mp2 mp3 mpga",
|
||||||
"text/plain txt asc",
|
"image/gif" " gif",
|
||||||
"text/xml xml",
|
"image/jpeg" " jpeg jpe jpg",
|
||||||
"video/mpeg mpeg mpe mpg",
|
"image/png" " png",
|
||||||
"video/x-msvideo avi",
|
"text/css" " css",
|
||||||
|
"text/html" " html htm",
|
||||||
|
"text/javascript" " js",
|
||||||
|
"text/plain" " txt asc",
|
||||||
|
"video/mpeg" " mpeg mpe mpg",
|
||||||
|
"video/quicktime" " qt mov",
|
||||||
|
"video/x-msvideo" " avi",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -933,7 +939,9 @@ static void usage(void)
|
|||||||
"\n");
|
"\n");
|
||||||
printf(
|
printf(
|
||||||
"\t--pidfile filename (default: no pidfile)\n"
|
"\t--pidfile filename (default: no pidfile)\n"
|
||||||
"\t\tWrite PID to the specified file.\n"
|
"\t\tWrite PID to the specified file. Note that if you are\n"
|
||||||
|
"\t\tusing --chroot, then the pidfile must be relative to,\n"
|
||||||
|
"\t\tand inside the wwwroot.\n"
|
||||||
"\n");
|
"\n");
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
printf(
|
printf(
|
||||||
|
Loading…
Reference in New Issue
Block a user