fix(protocol/http): response mode - extra time option with lwp backend (#2848)

This commit is contained in:
qgarnier 2021-06-03 11:02:05 +02:00 committed by GitHub
parent b4c1d5f900
commit dee1e21a7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -184,6 +184,10 @@ sub manage_selection {
if (defined($self->{option_results}->{extra_stats})) {
my $times = $self->{http}->get_times();
if (!defined($times)) {
$self->{output}->add_option_msg(short_msg => 'Unsupported --extra-stats option for current http backend. Please try with curl backend.');
$self->{output}->option_exit();
}
$self->{global} = { %$times, %{$self->{global}} };
}
}

View File

@ -348,7 +348,7 @@ sub get_certificate {
return ('socket', $con);
}
sub get_time {
sub get_times {
my ($self, %options) = @_;
return undef;