fix(protocol/http): response mode - extra time option with lwp backend (#2848)
This commit is contained in:
parent
b4c1d5f900
commit
dee1e21a7f
|
@ -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}} };
|
||||
}
|
||||
}
|
||||
|
|
|
@ -348,7 +348,7 @@ sub get_certificate {
|
|||
return ('socket', $con);
|
||||
}
|
||||
|
||||
sub get_time {
|
||||
sub get_times {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
return undef;
|
||||
|
|
Loading…
Reference in New Issue