quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

config.def.h (1024B)


      1 #define HEADER_MAX 4096
      2 #define FIELD_MAX  200
      3 
      4 /* mime-types */
      5 static const struct {
      6 	char *ext;
      7 	char *type;
      8 } mimes[] = {
      9 	{ "xml",   "application/xml; charset=utf-8" },
     10 	{ "xhtml", "application/xhtml+xml; charset=utf-8" },
     11 	{ "html",  "text/html; charset=utf-8" },
     12 	{ "htm",   "text/html; charset=utf-8" },
     13 	{ "css",   "text/css; charset=utf-8" },
     14 	{ "txt",   "text/plain; charset=utf-8" },
     15 	{ "md",    "text/plain; charset=utf-8" },
     16 	{ "c",     "text/plain; charset=utf-8" },
     17 	{ "h",     "text/plain; charset=utf-8" },
     18 	{ "gz",    "application/x-gtar" },
     19 	{ "tar",   "application/tar" },
     20 	{ "pdf",   "application/x-pdf" },
     21 	{ "png",   "image/png" },
     22 	{ "gif",   "image/gif" },
     23 	{ "jpeg",  "image/jpg" },
     24 	{ "jpg",   "image/jpg" },
     25 	{ "iso",   "application/x-iso9660-image" },
     26 	{ "webp",  "image/webp" },
     27 	{ "svg",   "image/svg+xml; charset=utf-8" },
     28 	{ "flac",  "audio/flac" },
     29 	{ "mp3",   "audio/mpeg" },
     30 	{ "ogg",   "audio/ogg" },
     31 	{ "mp4",   "video/mp4" },
     32 	{ "ogv",   "video/ogg" },
     33 	{ "webm",  "video/webm" },
     34 };