Branch Coverage

blib/lib/Catalyst/Engine/CGI.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
62 818 0 unless ($c->config->{'using_frontend_proxy'})
63 0 818 if $ENV{'REMOTE_ADDR'} ne '127.0.0.1'
64 1 817 if $c->config->{'ignore_frontend_proxy'}
66 816 1 unless $ENV{'HTTP_X_FORWARDED_FOR'}
79 0 818 if ($ENV{'HTTPS'} and uc $ENV{'HTTPS'} eq 'ON')
83 0 818 if ($ENV{'SERVER_PORT'} == 443)
98 63804 1669 unless $header =~ /^(?:HTTP|CONTENT|COOKIE)/i
112 0 818 $c->request->secure ? :
116 0 818 if (exists $ENV{'REDIRECT_URL'}) { }
127 818 0 unless ($c->config->{'using_frontend_proxy'})
128 0 818 if not $host =~ /localhost|127.0.0.1/
129 1 817 if $c->config->{'ignore_frontend_proxy'}
131 816 1 unless $ENV{'HTTP_X_FORWARDED_HOST'}
137 0 1 $c->request->secure ? :
142 0 818 unless $base_path =~ m[/$]
152 8 810 if $ENV{'QUERY_STRING'}
170 8 810 if ($ENV{'QUERY_STRING'})
182 0 818 if ($args{'env'})