cvs: php4 /sapi/thttpd thttpd_patch
| From: | Sascha Schumann | Date: | Mon, 10 Dec 2001 14:09:08 +0000 |
| Subject: | cvs: php4 /sapi/thttpd thttpd_patch | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8558@lists.php.net to get a copy of this message | ||
sas Mon Dec 10 09:09:08 2001 EDT
Modified files:
/php4/sapi/thttpd thttpd_patch
Log:
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.
Index: php4/sapi/thttpd/thttpd_patch
diff -u php4/sapi/thttpd/thttpd_patch:1.12 php4/sapi/thttpd/thttpd_patch:1.13
--- php4/sapi/thttpd/thttpd_patch:1.12 Mon Dec 10 08:31:41 2001
+++ php4/sapi/thttpd/thttpd_patch Mon Dec 10 09:09:08 2001
@@ -203,6 +203,18 @@
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