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…
Reference in New Issue