Skip to content

Commit

Permalink
devops dotnet#9.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Mar 28, 2019
1 parent 997bfe6 commit 1139bc8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devops/build-samples.csx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ public static string DownloadWithGithubAuth (string uri)
var path = Path.GetTempFileName ();
var headers = new List<(string, string)> ();
var authToken = AuthToken ("github.com");
if (!string.IsNullOrEmpty (authToken))
if (!string.IsNullOrEmpty (authToken)) {
Console.WriteLine ("Has auth token!");
headers.Add (("Authorization", authToken));
} else {
Console.WriteLine ("Does not have auth token!");
}
path = downloader
.DownloadItemAsync (
uri,
Expand Down

0 comments on commit 1139bc8

Please sign in to comment.