source: trunk/package/uhttpd/src/uhttpd-mimetypes.h @ 20428

Last change on this file since 20428 was 20428, checked in by jow, 7 years ago

[package] add uhttpd (moved from LuCI trunk)

File size: 2.4 KB
Line 
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
21static 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        { "tgz",    "application/x-compressed-tar" },
58        { "gz",     "application/x-gzip" },
59        { "bz2",    "application/x-bzip" },
60        { "tar",    "application/x-tar" },
61        { "rar",    "application/x-rar-compressed" },
62
63        { "mp3",    "audio/mpeg" },
64        { "ogg",    "audio/x-vorbis+ogg" },
65        { "wav",    "audio/x-wav" },
66
67        { "mpg",    "video/mpeg" },
68        { "mpeg",   "video/mpeg" },
69        { "avi",    "video/x-msvideo" },
70
71        { "README", "text/plain" },
72        { "log",    "text/plain" },
73        { "cfg",    "text/plain" },
74        { "conf",   "text/plain" },
75
76        { NULL, NULL }
77};
78
79#endif
80
Note: See TracBrowser for help on using the repository browser.