Jason Hall wrote:
> 
> ok, that make sense, so I modified my filter1 to just register the filter,
> print out some text, and return ok, that's it. and it still doesn't print
> anything if filter2 comes after it? Does that sound wrong to anybody but me?
> 

try this:

package One;

use Apache::Constants qw(OK);
use strict;

sub handler {
  my $r = shift;
  $r = $r->filter_register();
  print "Filter 1";
  return OK;
}
1;

package Two;

use Apache::Constants qw(OK);
use strict;

sub handler {
  my $r = shift;
  $r = $r->filter_register();
  my ($fh, $status) = $r->filter_input();
  return $status unless $status == OK;
  $r->send_http_header('text/plain');
  while(<$fh>) {
    print;
  }
  print "Filter 2";
  return OK;
}
1;


looks like if you don't send your headers things go slightly amuck.  

--Geoff

Reply via email to