File Coverage

blib/lib/Mojolicious/Plugin/NoServerHeader.pm
Criterion Covered Total %
statement 5 5 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 9 9 100.0


line stmt bran cond sub pod time code
1             package Mojolicious::Plugin::NoServerHeader;
2 1     1   16113 use Mojo::Base 'Mojolicious::Plugin';
  1         3  
  1         7  
3              
4             our $VERSION = '0.03';
5              
6             sub register {
7             $_[1]->hook(after_dispatch => sub {
8 1     1   3472 $_[0]->res->headers->remove('Server');
9 1     1 1 40 });
10             }
11              
12             1;
13             __END__