blib/lib/Plack/Middleware/JSON/ForBrowsers.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 5 | 6 | 83.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
117 | 7 | 0 | 3 | defined $$env{'HTTP_X_REQUESTED_WITH'} and $$env{'HTTP_X_REQUESTED_WITH'} eq 'XMLHttpRequest' |
122 | 3 | 1 | 3 | defined $$env{'HTTP_ACCEPT'} and any sub { index($$env{'HTTP_ACCEPT'}, $_) >= 0; } , @html_types |