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:
OlivierKuziemko 2021-10-22 10:18:58 +02:00 committed by GitHub
parent 928a5a966c
commit c1ba661252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {