| lib/PAGI/Middleware/TrustedHosts.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 4 | 9 | 44.4 |
| line | l | !l | condition |
|---|---|---|---|
| 49 | 3 | 0 | $config->{'hosts'} // die("TrustedHosts requires 'hosts' option") |
| 50 | 0 | 3 | $config->{'allow_empty'} // 0 |
| 114 | 3 | 0 | $scope->{'headers'} // [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 81 | 0 | 0 | 3 | not defined $host or $host eq "" |