mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-25 22:55:15 +02:00
Merge pull request #254 from bcournaud/master
Add get_header to http plugin
This commit is contained in:
commit
ee687031f4
@ -297,7 +297,14 @@ sub request {
|
||||
$self->{output}->exit();
|
||||
}
|
||||
|
||||
$self->{headers} = $response->headers;
|
||||
return $response->content;
|
||||
}
|
||||
|
||||
sub get_header {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
return $self->{headers};
|
||||
}
|
||||
|
||||
1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user