Skip to content

Commit

Permalink
Merge pull request #2290 from HebaruSan/fix/archive-epochs
Browse files Browse the repository at this point in the history
Replace colons with hyphens in archive URLs
  • Loading branch information
techman83 authored Feb 21, 2018
2 parents 4967504 + f01ce3d commit 629c33f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/Types/CkanModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,10 @@ public Uri InternetArchiveDownload
{
get
{
string verStr = version.ToString().Replace(':', '-');
return license.All(l => l.Redistributable)
? new Uri(
$"https://archive.org/download/{identifier}-{version}/{download_hash.sha1.Substring(0, 8)}-{identifier}-{version}.zip")
$"https://archive.org/download/{identifier}-{verStr}/{download_hash.sha1.Substring(0, 8)}-{identifier}-{verStr}.zip")
: null;
}
}
Expand Down

0 comments on commit 629c33f

Please sign in to comment.