]> git.pld-linux.org Git - packages/lighttpd.git/blobdiff - lighttpd-mime.types.sh
up to 1.4.50
[packages/lighttpd.git] / lighttpd-mime.types.sh
index 6acbe063863bfec2f21a66b1903285b680e68b6c..5252638ff7cc945ab38c71d9d9a2565be0205bea 100644 (file)
@@ -19,7 +19,7 @@ awk '{
        charset = "";
        # add charset for "text/*" types
        if (type ~ "text/") {
-               type = "\"" type "; charset=\" + mimetype_textcharset"
+               type = "\"" type "\" + mimetype_textcharsetheader"
        } else {
                type = "\"" type "\""
        }
@@ -41,7 +41,13 @@ mv -f mime.types.conf mime.types.conf.tmp
 # header
 cat >> mime.types.conf <<EOF
 # charset used for "text/*" mimetypes
-mimetype_textcharset = "utf-8"
+# Apache's AddCharset equivalent. Leave empty to add no charset.
+# AddCharset "utf-8" would be "; charset=\"utf-8\""
+# See this post about what it affects:
+# http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2012-February/022499.html
+mimetype_textcharsetheader = ""
+#mimetype_textcharsetheader = "; charset=\"utf-8\""
+
 # mimetype mapping
 mimetype.assign = (
 EOF
This page took 0.041851 seconds and 4 git commands to generate.