diff --git a/centreon/plugins/http.pm b/centreon/plugins/http.pm index 7d35bc545..0fc547c6c 100644 --- a/centreon/plugins/http.pm +++ b/centreon/plugins/http.pm @@ -82,6 +82,12 @@ sub add_header { $self->{add_headers}->{$options{key}} = $options{value}; } +sub remove_header { + my ($self, %options) = @_; + + delete $self->{add_headers}->{$options{key}} if (defined($self->{add_headers}->{$options{key}})); +} + sub check_options { my ($self, %options) = @_;