Make GeoIP headers optional
This commit is contained in:
parent
d22396c298
commit
cf0d87610c
1
config.sample/add_geoip_headers
Normal file
1
config.sample/add_geoip_headers
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
@ -130,6 +130,7 @@ sub register {
|
|||||||
$self->{_args}{db_dir} ||= '/usr/local/share/GeoIP';
|
$self->{_args}{db_dir} ||= '/usr/local/share/GeoIP';
|
||||||
|
|
||||||
$self->load_geoip() or return;
|
$self->load_geoip() or return;
|
||||||
|
return if ! $self->qp->config('add_geoip_headers');
|
||||||
$self->register_hook( data_post => 'add_headers' );
|
$self->register_hook( data_post => 'add_headers' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
t/config/add_geoip_headers
Normal file
1
t/config/add_geoip_headers
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
Loading…
Reference in New Issue
Block a user