mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
+ Add get_header() method to http plugin
This commit is contained in:
parent
499a00bfd1
commit
58d0583d1e
@ -297,7 +297,14 @@ sub request {
|
|||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$self->{headers} = $response->headers;
|
||||||
return $response->content;
|
return $response->content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub get_header {
|
||||||
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
return $self->{headers};
|
||||||
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user