line |
true |
false |
branch |
117
|
2 |
1 |
if ($info) |
141
|
1 |
1 |
if ($$hdr{'Status'} == 200) |
143
|
0 |
1 |
if not defined $len or $len <= 0 |
154
|
0 |
1 |
if $len <= $self->block_size |
158
|
1 |
7 |
unless defined $block_task |
168
|
1 |
1 |
if ($self->on_body($first_task)->($partial_body, $hdr)) |
170
|
1 |
0 |
if ($$hdr{'content-length'} <= $self->block_size and $$first_task{'size'} == $$hdr{'content-length'} or $$first_task{'size'} >= $self->block_size) |
175
|
1 |
0 |
$self->digest ? : |
|
0 |
1 |
unless $self->on_block_finish->($hdr, $first_task, $self->digest ? $$first_task{'ctx'}->hexdigest : '') |
188
|
0 |
3 |
if $$hdr{'OrigStatus'} and $$hdr{'OrigStatus'} == 200 or $$hdr{'Status'} == 200 or $$hdr{'Status'} == 416 |
190
|
1 |
2 |
if ($status == 500 || $status == 503 || $status =~ /^59/ and $retry < $self->max_retries) |
202
|
2 |
0 |
$status ? : |
|
2 |
0 |
$$hdr{'Reason'} ? : |
220
|
1 |
8 |
unless $$hdr{'Status'} == 206 or $$hdr{'Status'} == 200 |
224
|
8 |
0 |
if ($$task{'size'} + $len > $self->block_size) |
233
|
8 |
0 |
if ($self->digest) |
268
|
7 |
0 |
if ($status == 200 or $status == 206) |
270
|
7 |
0 |
$self->digest ? : |
|
0 |
7 |
if $$task{'size'} != $$task{'tail'} - $$task{'ofs'} + 1 or not $self->on_block_finish->($hdl, $task, $self->digest ? $$task{'ctx'}->hexdigest : '') |
278
|
0 |
7 |
$block_task ? : |
283
|
0 |
0 |
$status ? : |
|
0 |
0 |
$$hdr{'Reason'} ? : |
295
|
0 |
0 |
if not $status =~ /^(59.|503|500|502|200|206|)$/ or $retry > $self->max_retries |
337
|
0 |
8 |
if ($length - 1 < $tail) |