Skip to content

Commit a4ee464

Browse files
committed
[futurepress#75] Upgrades to Lighttpd v1.4.72
As a part of this update, we remove MIME type configuration from the library, and rely on the default MIME type config from Lighttpd.
1 parent 5b7fddd commit a4ee464

File tree

2 files changed

+2
-84
lines changed

2 files changed

+2
-84
lines changed

lighttpd1.4

Submodule lighttpd1.4 updated 72 files

src/config.ts

Lines changed: 1 addition & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -117,89 +117,7 @@ function standardConfig({
117117
index-file.names += ("index.xhtml", "index.html", "index.htm", "default.htm", "index.php")
118118
119119
${modulesString}
120-
${webdavConfig}
121-
122-
mimetype.assign = (
123-
# These are default types from https://redmine.lighttpd.net/projects/lighttpd/wiki/Mimetype_assignDetails
124-
125-
".epub" => "application/epub+zip",
126-
".ncx" => "application/xml",
127-
".pdf" => "application/pdf",
128-
".sig" => "application/pgp-signature",
129-
".spl" => "application/futuresplash",
130-
".class" => "application/octet-stream",
131-
".ps" => "application/postscript",
132-
".torrent" => "application/x-bittorrent",
133-
".dvi" => "application/x-dvi",
134-
".gz" => "application/x-gzip",
135-
".pac" => "application/x-ns-proxy-autoconfig",
136-
".swf" => "application/x-shockwave-flash",
137-
".tar.gz" => "application/x-tgz",
138-
".tgz" => "application/x-tgz",
139-
".tar" => "application/x-tar",
140-
".zip" => "application/zip",
141-
".mp3" => "audio/mpeg",
142-
".m3u" => "audio/x-mpegurl",
143-
".wma" => "audio/x-ms-wma",
144-
".wax" => "audio/x-ms-wax",
145-
".ogg" => "application/ogg",
146-
".wav" => "audio/x-wav",
147-
".gif" => "image/gif",
148-
".jpg" => "image/jpeg",
149-
".jpeg" => "image/jpeg",
150-
".png" => "image/png",
151-
".xbm" => "image/x-xbitmap",
152-
".xpm" => "image/x-xpixmap",
153-
".xwd" => "image/x-xwindowdump",
154-
".css" => "text/css; charset=utf-8",
155-
".html" => "text/html",
156-
".htm" => "text/html",
157-
".js" => "text/javascript",
158-
".asc" => "text/plain; charset=utf-8",
159-
".c" => "text/plain; charset=utf-8",
160-
".cpp" => "text/plain; charset=utf-8",
161-
".log" => "text/plain; charset=utf-8",
162-
".conf" => "text/plain; charset=utf-8",
163-
".text" => "text/plain; charset=utf-8",
164-
".txt" => "text/plain; charset=utf-8",
165-
".spec" => "text/plain; charset=utf-8",
166-
".dtd" => "text/xml",
167-
".xml" => "text/xml",
168-
".mpeg" => "video/mpeg",
169-
".mpg" => "video/mpeg",
170-
".mov" => "video/quicktime",
171-
".qt" => "video/quicktime",
172-
".avi" => "video/x-msvideo",
173-
".asf" => "video/x-ms-asf",
174-
".asx" => "video/x-ms-asf",
175-
".wmv" => "video/x-ms-wmv",
176-
".bz2" => "application/x-bzip",
177-
".tbz" => "application/x-bzip-compressed-tar",
178-
".tar.bz2" => "application/x-bzip-compressed-tar",
179-
".odt" => "application/vnd.oasis.opendocument.text",
180-
".ods" => "application/vnd.oasis.opendocument.spreadsheet",
181-
".odp" => "application/vnd.oasis.opendocument.presentation",
182-
".odg" => "application/vnd.oasis.opendocument.graphics",
183-
".odc" => "application/vnd.oasis.opendocument.chart",
184-
".odf" => "application/vnd.oasis.opendocument.formula",
185-
".odi" => "application/vnd.oasis.opendocument.image",
186-
".odm" => "application/vnd.oasis.opendocument.text-master",
187-
".opf" => "application/oebps-package+xml",
188-
".ott" => "application/vnd.oasis.opendocument.text-template",
189-
".ots" => "application/vnd.oasis.opendocument.spreadsheet-template",
190-
".otp" => "application/vnd.oasis.opendocument.presentation-template",
191-
".otg" => "application/vnd.oasis.opendocument.graphics-template",
192-
".otc" => "application/vnd.oasis.opendocument.chart-template",
193-
".otf" => "font/otf",
194-
".oti" => "application/vnd.oasis.opendocument.image-template",
195-
".oth" => "application/vnd.oasis.opendocument.text-web",
196-
".svg" => "image/svg+xml",
197-
".ttf" => "font/ttf",
198-
".xhtml" => "application/xhtml+xml",
199-
200-
# make the default mime type application/octet-stream.
201-
"" => "application/octet-stream",
202-
)`;
120+
${webdavConfig}`;
203121
}
204122

205123
/**

0 commit comments

Comments
 (0)