mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
enh(curl): manage unknown http code (#3212)
Updating curl.pm to manage http code which are not include in http_code_explained
This commit is contained in:
parent
7b6a860e8a
commit
c1d83ddd2b
@ -467,7 +467,7 @@ sub get_code {
|
|||||||
sub get_message {
|
sub get_message {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
return $http_code_explained->{$self->{response_code}};
|
return defined($http_code_explained->{$self->{response_code}}) ? $http_code_explained->{$self->{response_code}} : 'Unknown code';
|
||||||
}
|
}
|
||||||
|
|
||||||
sub get_certificate {
|
sub get_certificate {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user