Hi.
I wonder, which Handler I would have to invoke to mangle or adjust the
response headers. I thought, this was the PerlFixupHandler. But
$r->headers_out seems to be completly empty.
This is my handler:
use strict;
use Apache::Constants;
use Apache::Table;
sub handler {
my $r = shift;
# this does not work, it's empty:
$r->headers_out->do(sub {
my($key, $value) = @_;
$r->log_error("$key => $value\n");
1;
});
# this works fine:
my $status = $r->status();
$r->log_error("Status: $status");
}
1;
__END__
Also, headers_in works fine. How do I get the Response-Headers, the server
would normally send to the client, to modify them.
Thanks, ~~~:-Jochen Schnapka
--
Tussman's Law:
Nothing is as inevitable as a mistake whose time has come.