mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-08 17:06:05 +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 {
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user