Branch Coverage

blib/lib/Plack/Middleware/ReverseProxy.pm
Criterion Covered Total %
branch 27 30 90.0


line true false branch
15 4 13 if $env->{'HTTP_X_FORWARDED_HTTPS'}
17 1 16 if $env->{'HTTP_X_FORWARDED_PROTO'} and $env->{'HTTP_X_FORWARDED_PROTO'} eq 'https'
18 5 12 if $env->{'HTTPS'} and uc $env->{'HTTPS'} eq 'ON'
19 5 12 $env->{'psgi.url_scheme'} eq 'https' ? :
24 2 15 if ($env->{'HTTP_X_FORWARDED_FOR'})
29 8 9 if ($env->{'HTTP_X_FORWARDED_HOST'}) { }
9 0 elsif ($env->{'HTTP_HOST'}) { }
32 2 6 if ($env->{'HTTP_X_FORWARDED_SERVER'})
34 1 1 if ($host =~ /^(.+):(\d+)$/)
37 1 0 if $env->{'SERVER_PORT'} == 443
43 2 6 if ($host =~ /^(.+):(\d+)$/) { }
2 4 elsif ($env->{'HTTP_X_FORWARDED_PORT'}) { }
51 1 1 if $env->{'SERVER_PORT'} == 443
59 1 8 if ($host =~ /^(.+):(\d+)$/) { }
8 0 elsif ($host =~ /^(.+)$/) { }