| 1 | package Mojolicious::Plugin::NoServerHeader; | ||
| 2 | 1 | ▶ | use Mojo::Base 'Mojolicious::Plugin'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 1 | our $VERSION = '0.03'; | |
| 5 | |||
| 6 | 1 | ▶ | sub register { |
|
Subroutine
register: called CC=1 SCAR=0.0
Pod
documented
| |||
| 7 | 1 | ▶ | $_[1]->hook(after_dispatch => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 8 | 1 | $_[0]->res->headers->remove('Server'); | |
| 9 | 1 | }); | |
| 10 | } | ||
| 11 | |||
| 12 | 1 | 1; | |
| 13 | __END__ | ||