POE-XUL
view release on metacpan or search on metacpan
lib/POE/Component/XUL.pm view on Meta::CPAN
############################################################
sub post_connection
{
my( $self, $req, $resp ) = @_;
my $app = eval { $req->param( 'app' ) } || $self->{logging}->{app};
local $self->{logging}->{app} = $app;
my $conn = $req->connection;
my @log;
push @log, ($conn ? $conn->remote_ip : '0.0.0.0');
if( $log[-1] eq '127.0.0.1' and $req->header( 'X-Forwarded-For' ) ) {
$log[-1] = $req->header( 'X-Forwarded-For' );
}
# push @log, ($self->{preforked} ? $$ : '-');
push @log, $$, '-';
my $path = $req->uri->path;
my $query = $req->uri->query;
$path .= "?$query" if $query and $req->method eq 'GET';
( run in 0.416 second using v1.01-cache-2.11-cpan-4e96b696675 )