[ljcom] r12130: LJSUP-12591: remove some warnings from p...
Committer: wisest-owl
LJSUP-12591: remove some warnings from prodU trunk/cgi-bin/LJ/Response.pm
Modified: trunk/cgi-bin/LJ/Response.pm
===================================================================
--- trunk/cgi-bin/LJ/Response.pm 2012-06-19 07:30:47 UTC (rev 12129)
+++ trunk/cgi-bin/LJ/Response.pm 2012-06-19 08:08:56 UTC (rev 12130)
@@ -52,7 +52,8 @@
## 1. should we comress response?
my $do_gzip = $LJ::DO_GZIP && $LJ::OPTMOD_ZLIB;
my $length = length($content);
- if (LJ::Request->header_in("X-Accept-Encoding") =~ m/gzip/){
+ my $x_accept_enc = LJ::Request->header_in("X-Accept-Encoding");
+ if ($x_accept_enc && ($x_accept_enc =~ m/gzip/)){
## X-Accept-Encoding strictly demands gzip encoding
## no other measurements
$do_gzip = 1;
