2 * uhttpd - Tiny single-threaded httpd - MIME type definitions
4 * Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 #ifndef _UHTTPD_MIMETYPES_
21 static struct mimetype uh_mime_types
[] = {
23 { "txt", "text/plain" },
24 { "log", "text/plain" },
25 { "js", "text/javascript" },
26 { "css", "text/css" },
27 { "htm", "text/html" },
28 { "html", "text/html" },
29 { "diff", "text/x-patch" },
30 { "patch", "text/x-patch" },
31 { "c", "text/x-csrc" },
32 { "h", "text/x-chdr" },
33 { "o", "text/x-object" },
34 { "ko", "text/x-object" },
36 { "bmp", "image/bmp" },
37 { "gif", "image/gif" },
38 { "png", "image/png" },
39 { "jpg", "image/jpeg" },
40 { "jpeg", "image/jpeg" },
41 { "svg", "image/svg+xml" },
43 { "zip", "application/zip" },
44 { "pdf", "application/pdf" },
45 { "xml", "application/xml" },
46 { "xsl", "application/xml" },
47 { "doc", "application/msword" },
48 { "ppt", "application/vnd.ms-powerpoint" },
49 { "xls", "application/vnd.ms-excel" },
50 { "odt", "application/vnd.oasis.opendocument.text" },
51 { "odp", "application/vnd.oasis.opendocument.presentation" },
52 { "pl", "application/x-perl" },
53 { "sh", "application/x-shellscript" },
54 { "php", "application/x-php" },
55 { "deb", "application/x-deb" },
56 { "iso", "application/x-cd-image" },
57 { "tar.gz", "application/x-compressed-tar" },
58 { "tgz", "application/x-compressed-tar" },
59 { "gz", "application/x-gzip" },
60 { "tar.bz2", "application/x-bzip-compressed-tar" },
61 { "tbz", "application/x-bzip-compressed-tar" },
62 { "bz2", "application/x-bzip" },
63 { "tar", "application/x-tar" },
64 { "rar", "application/x-rar-compressed" },
66 { "mp3", "audio/mpeg" },
67 { "ogg", "audio/x-vorbis+ogg" },
68 { "wav", "audio/x-wav" },
70 { "mpg", "video/mpeg" },
71 { "mpeg", "video/mpeg" },
72 { "avi", "video/x-msvideo" },
74 { "README", "text/plain" },
75 { "log", "text/plain" },
76 { "cfg", "text/plain" },
77 { "conf", "text/plain" },
This page took 0.050252 seconds and 5 git commands to generate.