| lib/PAGI/Middleware/TrustedHosts.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 7 | 12 | 58.3 |
| line | true | false | branch |
|---|---|---|---|
| 72 | 0 | 3 | if ($scope->{'type'} ne "http") |
| 81 | 0 | 3 | if (not defined $host or $host eq "") |
| 82 | 0 | 0 | if ($self->{'allow_empty'}) |
| 96 | 2 | 1 | if ($host_for_match =~ /$pattern/i) |
| 102 | 2 | 1 | if ($allowed) { } |
| 115 | 3 | 0 | if lc $h->[0] eq $name |