ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Coro/myhttpd/httpd.pl
(Generate patch)

Comparing cvsroot/Coro/myhttpd/httpd.pl (file contents):
Revision 1.63 by root, Wed Jan 23 03:07:05 2002 UTC vs.
Revision 1.64 by root, Wed Jan 23 04:49:50 2002 UTC

205 } 205 }
206 } 206 }
207 207
208 if ($self->{method} ne "HEAD" 208 if ($self->{method} ne "HEAD"
209 && $self->{h}{"accept-encoding"} =~ /\bgzip\b/ 209 && $self->{h}{"accept-encoding"} =~ /\bgzip\b/
210 && 400 < length $content
210 && $hdr->{"Content-Length"} == length $content 211 && $hdr->{"Content-Length"} == length $content
211 && !exists $hdr->{"Content-Encoding"} 212 && !exists $hdr->{"Content-Encoding"}
212 ) { 213 ) {
213 my $orig = length $content; 214 my $orig = length $content;
214 $hdr->{"Content-Encoding"} = "gzip"; 215 $hdr->{"Content-Encoding"} = "gzip";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines