aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Georg Gleditsch <argggh@taniquetil.(none)>2009-08-17 08:52:15 +0200
committerArne Georg Gleditsch <argggh@taniquetil.(none)>2009-08-17 08:52:15 +0200
commit9f82ae39d86365e49333043466b1c3cad0f92190 (patch)
tree1edcc348fa4dc4ffd6f3df1e1e418afa0a58d6af
parent7f5d4f37d8d3240b8c3a91be79c0585e6ca8a9d4 (diff)
parent2ea741ee97e8412f85887932f8c03763c9834230 (diff)
Merge branch 'master' of ssh://lxr.linux.no/home/argggh/git/lxrng
-rw-r--r--lib/LXRng/Web.pm10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/LXRng/Web.pm b/lib/LXRng/Web.pm
index 5b11a2d..a592b9a 100644
--- a/lib/LXRng/Web.pm
+++ b/lib/LXRng/Web.pm
@@ -48,6 +48,8 @@ eval { require PerlIO::gzip; $has_gzip_io = 1; };
sub do_compress_response {
my ($query) = @_;
+ # Use mod_deflate when running under mod_perl.
+ return 0 if $INC{'LXRng/ModPerl.pm'};
my @enc = split(",", $query->http('Accept-Encoding'));
return $has_gzip_io && grep { $_ eq 'gzip' } @enc;
}
@@ -371,12 +373,6 @@ sub source {
return $id;
}
-
- # TODO: This is potentially useful, in that it resets the stream
- # to uncompressed mode. However, under Perl 5.8.8+PerlIO::gzip
- # 0.18, this seems to truncate the stream. Not strictly needed
- # for CGI, reexamine when adapting to mod_perl.
- ## binmode(\*STDOUT, ":pop") if $gzip;
}
@@ -563,8 +559,6 @@ sub handle_ajax_request {
elsif ($context->param('fname') eq 'pjx_releases') {
print_release_list($context, $template);
}
-
- # binmode(\*STDOUT, ":pop") if $gzip;
}