Jason Hall wrote:
> 
> AHAH!!!  I found it..  thanks, your example showed the difference.
> 
> What it was is that I was sending my header before my final filter, which as
> I now am guessing, maps STDOUT, which this needs. 

well, you should be able to print your headers from any filter in the
chain - they are a no-op for all but the final filter.

package One;

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

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

should work just as well...

> I'm recommending to the
> author to put a note in about where the headers should be printed.
> 
> Thanks for your help, definately made the difference

no problem :)

--Geoff

Reply via email to