We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f9743 commit eeb41ebCopy full SHA for eeb41eb
eng/tools/RepoTasks/DownloadFile.cs
@@ -73,6 +73,12 @@ private async System.Threading.Tasks.Task<bool> ExecuteAsync()
73
{
74
var uriSuffixBytes = System.Convert.FromBase64String(PrivateUriSuffix);
75
uriSuffix = System.Text.Encoding.UTF8.GetString(uriSuffixBytes);
76
+
77
+ // Ensure that the url suffix starts with the query string prefix
78
+ if (!uriSuffix.StartsWith("?", StringComparison.OrdinalIgnoreCase))
79
+ {
80
+ uriSuffix = $"?{uriSuffix}";
81
+ }
82
}
83
downloadStatus = await DownloadWithRetriesAsync($"{PrivateUri}{uriSuffix}", DestinationPath, errorMessages);
84
0 commit comments