Merge pull request #4318 from matthewbauer/add-slash-to-trusted-binary-cache

Canonicalize binary caches with ‘/’ when one is missing
This commit is contained in:
Eelco Dolstra 2020-12-05 10:17:17 +01:00 committed by GitHub
commit 1d1a85eb0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,6 +215,8 @@ struct ClientSettings
for (auto & s : ss)
if (trusted.count(s))
subs.push_back(s);
else if (!hasSuffix(s, "/") && trusted.count(s + "/"))
subs.push_back(s + "/");
else
warn("ignoring untrusted substituter '%s'", s);
res = subs;