Apache-DebugInfo
view release on metacpan or search on metacpan
DebugInfo.pm view on Meta::CPAN
#---------------------------------------------------------------------
# otherwise, just print in a neat and tidy format
#---------------------------------------------------------------------
print $fh "\nDebug headers_in for [$ip] $uri during " .
$r->current_callback . "\n";
$r->headers_in->do(sub {
my ($field, $value) = @_;
if ($field =~ m/Cookie/) {
my @values = split /; /, $value;
foreach my $cookie (@values) {
print $fh "\t$field => $cookie\n";
}
}
else {
print $fh "\t$field => $value\n";
}
1;
});
DebugInfo.pm view on Meta::CPAN
$log->info("Exiting Apache::DebugInfo::headers_out")
if $Apache::DebugInfo::DEBUG;
return;
}
print $fh "\nDebug headers_out for [$ip] $uri during " .
$r->current_callback . "\n";
$r->headers_out->do(sub {
my ($field, $value) = @_;
if ($field =~ m/Cookie/) {
my @values = split /;/, $value;
print $fh "\t$field => $values[0]\n";
for (my $i=1;$i < @values; $i++) {
print $fh "\t\t=> $values[$i]\n";
}
}
else {
print $fh "\t$field => $value\n";
}
1;
( run in 0.584 second using v1.01-cache-2.11-cpan-e9199f4ba4c )