]> granicus.if.org Git - php/commitdiff
Sent proper encodings for gzip/compress files, otherwise IE won't
authorSascha Schumann <sas@php.net>
Mon, 10 Dec 2001 14:09:08 +0000 (14:09 +0000)
committerSascha Schumann <sas@php.net>
Mon, 10 Dec 2001 14:09:08 +0000 (14:09 +0000)
display them.

Refer to section 3.5, RFC 2616 -- these are IANA registered.

Patch submitted to author.

sapi/thttpd/thttpd_patch

index 4131e026736c1afb120fc670cfc1239b7348fb95..fa6ae5ef6be176bc34635394001417ed20011227 100644 (file)
@@ -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