Skip to content

Commit 426ce48

Browse files
committed
Tolarate mirrors with disabled directory listing in mirror_probe_projects
1 parent c383c16 commit 426ce48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/MirrorCache/Task/MirrorProbe.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ sub _probe_projects {
146146
eval {
147147
$code = Mojo::UserAgent->new->max_redirects(5)->head($data->{uri}, {'User-Agent' => 'MirrorCache/probe_projects'})->result->code;
148148
};
149-
$success = 0 if $code ne 200;
149+
$success = 0 if ($code < 200 || $code >= 400) and $code != 403;
150150

151151
$count{$code} = 0 unless $count{$code};
152152
$count{$code}++;

0 commit comments

Comments
 (0)