Hi,

I get the following error sporadically on modperl 1.27 and apache
1.3.26 and Apache::Compress 1.003 either under RH7.x or Solaris 7:

Can't locate object method "header_in" via package "Apache::Compress"
(perhaps you forgot to load "Apache::Compress"?) at
/u1/lib/perl5/site_perl/5.6.1/Apache/Compress.pm line 14.

This is the handler from Apache::Compress.pm:

use strict;
use Compress::Zlib 1.0;
use Apache::File;
use Apache::Constants qw(:common);
use vars qw($VERSION);

sub handler {
  my $r = shift;

  my $can_gzip = $r->header_in('Accept-Encoding') =~ /gzip/;     # <---- line 14
  my $filter   = lc $r->dir_config('Filter') eq 'on';
  #warn "can_gzip=$can_gzip, filter=$filter";
  return DECLINED unless $can_gzip or $filter;

...

}

I have observed this more often on our solaris platform than on linux.

Any ideas?

Dirk

Reply via email to