From 6c47f4cef198dcb28af27b0170f2a70bcc7e51a4 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 3 Apr 2020 10:50:06 +0200 Subject: [PATCH] add remove header http class --- centreon/plugins/http.pm | 6 ++++++ 1 file changed, 6 insertions(+) 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) = @_;