summaryrefslogtreecommitdiff
path: root/sapi/thttpd
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2001-12-10 14:09:08 +0000
committerSascha Schumann <sas@php.net>2001-12-10 14:09:08 +0000
commit92a6f2c3440ea5aa63c0779dcabca8ef6cf118c5 (patch)
tree8169a19e38dfb1f614bf0bb325c44d55f45d4cc6 /sapi/thttpd
parentef72a765bf01f12d22b1eb6bdf96ccc589cfa0bc (diff)
downloadphp-git-92a6f2c3440ea5aa63c0779dcabca8ef6cf118c5.tar.gz
Sent proper encodings for gzip/compress files, otherwise IE won't
display them. Refer to section 3.5, RFC 2616 -- these are IANA registered. Patch submitted to author.
Diffstat (limited to 'sapi/thttpd')
-rw-r--r--sapi/thttpd/thttpd_patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/sapi/thttpd/thttpd_patch b/sapi/thttpd/thttpd_patch
index 4131e02673..fa6ae5ef6b 100644
--- a/sapi/thttpd/thttpd_patch
+++ b/sapi/thttpd/thttpd_patch
@@ -203,6 +203,18 @@ diff -ur thttpd-2.21b-orig/thttpd.c thttpd-2.21b/thttpd.c
hc->responselen = newlen;
sz = 0;
}
+diff -ur thttpd-2.21b-plain/mime_encodings.txt thttpd-2.21b/mime_encodings.txt
+--- thttpd-2.21b-plain/mime_encodings.txt Wed May 10 03:22:28 2000
++++ thttpd-2.21b/mime_encodings.txt Mon Dec 10 15:10:25 2001
+@@ -3,6 +3,6 @@
+ # A list of file extensions followed by the corresponding MIME encoding.
+ # Extensions not found in the table proceed to the mime_types table.
+
+-Z x-compress
+-gz x-gzip
++Z compress
++gz gzip
+ uu x-uuencode
diff -ur thttpd-2.21b-plain/libhttpd.c thttpd-2.21b/libhttpd.c
--- thttpd-2.21b-plain/libhttpd.c Tue Apr 24 00:42:40 2001
+++ thttpd-2.21b/libhttpd.c Mon Dec 10 14:32:26 2001