mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-25 14:44:43 +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
928a5a966c
commit
c1ba661252
@ -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