wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r12143: LJSUP-12628: remove warns

Committer: wisest-owl
LJSUP-12628: remove warns

U   trunk/cgi-bin/LJ/Response.pm
Modified: trunk/cgi-bin/LJ/Response.pm
===================================================================
--- trunk/cgi-bin/LJ/Response.pm	2012-06-20 11:50:07 UTC (rev 12142)
+++ trunk/cgi-bin/LJ/Response.pm	2012-06-20 13:16:58 UTC (rev 12143)
@@ -62,7 +62,9 @@
         my $ctbase = $self->content_type;
         $ctbase =~ s/;.*//;
         $do_gzip = 0 unless $LJ::GZIP_OKAY{$ctbase};
-        $do_gzip = 0 if LJ::Request->header_in("Accept-Encoding") !~ /gzip/;
+        my $accept_enc = LJ::Request->header_in("Accept-Encoding");
+        $do_gzip = 0 unless $accept_enc;
+        $do_gzip = 0 if $accept_enc && ($accept_enc !~ /gzip/);
 
         $do_gzip = 0 if $length < 500;
     }

Tags: ljcom, pm, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments