Branch Coverage

blib/lib/Catalyst/Engine/Apache.pm
Criterion Covered Total %
branch 0 58 0.0


line true false branch
36 0 0 unless ($c->config->{'using_frontend_proxy'})
37 0 0 if $c->request->address ne '127.0.0.1'
38 0 0 if $c->config->{'ignore_frontend_proxy'}
40 0 0 unless $headers->{'X-Forwarded-For'}
54 0 0 if ($INC{'Apache2/ModSSL.pm'}) { }
55 0 0 if $self->apache->connection->is_https
58 0 0 if defined $https and uc $https eq 'ON'
66 0 0 if (my $query_string = $self->apache->args)
76 0 0 if (my(%headers) = %{$self->apache->headers_in;})
84 0 0 $c->request->secure ? :
91 0 0 unless ($c->config->{'using_frontend_proxy'})
92 0 0 unless $host =~ /localhost|127.0.0.1/
93 0 0 if $c->config->{'ignore_frontend_proxy'}
95 0 0 unless $c->request->header('X-Forwarded-Host')
99 0 0 if ($host =~ /^(.+):(\d+)$/) { }
105 0 0 $c->request->secure ? :
113 0 0 if ($location and $location ne '/')
120 0 0 unless ($port =~ /^(?:80|443)$/ or $host =~ /:/)
139 0 0 if ($self->apache->dir_config('CatalystDisableLocationMatch')) { }
0 0 elsif ($base_path =~ /[^$URI::uric]/o) { }
158 0 0 unless $base_path =~ m[/$]
163 0 0 if (defined $ENV{'SCRIPT_NAME'} and $self->apache->filename and -f $self->apache->filename and -x _)
170 0 0 if ($base_path ne '/' and $base_path ne $path and $base_path =~ m[/$path])
175 0 0 $qs ? :
206 0 0 if $name =~ /^Content-(Length|Type)$/i
209 0 0 if ($name =~ /^X-/i) { }
218 0 0 if ($c->response->header('Set-Cookie') and $c->response->status >= 400)
232 0 0 if (my $length = $c->response->content_length)
242 0 0 if (not $self->apache->connection->aborted and defined $buffer)