blib/lib/Moxy/Plugin/RefererCutter.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 14 | 85.7 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 5 | 80.0 |
pod | 0 | 1 | 0.0 |
total | 16 | 20 | 80.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Moxy::Plugin::RefererCutter; | ||||||
2 | 1 | 1 | 767 | use strict; | |||
1 | 2 | ||||||
1 | 65 | ||||||
3 | 1 | 1 | 7 | use warnings; | |||
1 | 2 | ||||||
1 | 29 | ||||||
4 | 1 | 1 | 5 | use base qw/Moxy::Plugin/; | |||
1 | 1 | ||||||
1 | 688 | ||||||
5 | |||||||
6 | sub request_filter :Hook { | ||||||
7 | 0 | 0 | 0 | my ($self, $context, $args) = @_; | |||
8 | |||||||
9 | 0 | $args->{request}->remove_header('Referer'); | |||||
10 | 1 | 1 | 1213 | } | |||
1 | 1618 | ||||||
1 | 9 | ||||||
11 | |||||||
12 | 1; | ||||||
13 | __END__ |