Browse Source

Treat 401 the same as 404 when fetching a manifest

Tianon Gravi 6 years ago
parent
commit
86b0b8ad1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bashbrew/put-multiarch/put-multiarch.pl

+ 1 - 1
bashbrew/put-multiarch/put-multiarch.pl

@@ -100,7 +100,7 @@ sub get_manifest_p ($org, $repo, $ref, $tries = 3) {
 	}
 
 	return ua_retry_simple_req_p(GET => "$publicProxy/v2/$org/$repo/manifests/$ref")->then(sub ($tx) {
-		return if $tx->res->code == 404;
+		return if $tx->res->code == 404 || $tx->res->code == 401;
 
 		if (!$lastTry && $tx->res->code != 200) {
 			return get_manifest_p($org, $repo, $ref, $tries);