blib/lib/Plack/Middleware/SecureHeaders.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 8 | 8 | 100.0 |
line | true | false | branch |
---|---|---|---|
15 | 6 | 6 | unless (defined $self->secure_headers) |
26 | 1 | 11 | unless ($headers->exists("Content-Type")) |
32 | 2 | 9 | if ($headers->get("Content-Type") =~ qr"^text/html"i) |
33 | 1 | 1 | unless ($headers->get("Content-Type") =~ qr/charset=\w+/) |