ocf-linux: version bump to 20110720
[openwrt.git] / package / uhttpd / src / uhttpd-mimetypes.h
1 /*
2 * uhttpd - Tiny single-threaded httpd - MIME type definitions
3 *
4 * Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
5 *
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
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
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.
17 */
18
19 #ifndef _UHTTPD_MIMETYPES_
20
21 static struct mimetype uh_mime_types[] = {
22
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" },
35
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" },
42
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" },
65
66 { "mp3", "audio/mpeg" },
67 { "ogg", "audio/x-vorbis+ogg" },
68 { "wav", "audio/x-wav" },
69
70 { "mpg", "video/mpeg" },
71 { "mpeg", "video/mpeg" },
72 { "avi", "video/x-msvideo" },
73
74 { "README", "text/plain" },
75 { "log", "text/plain" },
76 { "cfg", "text/plain" },
77 { "conf", "text/plain" },
78
79 { NULL, NULL }
80 };
81
82 #endif
83
This page took 0.047467 seconds and 5 git commands to generate.