Update API code to use the new Add* methods on requests

This commit is contained in:
smoogipoo
2017-10-30 21:23:47 +09:00
parent d8b3f984f5
commit cd5324f1d1
3 changed files with 11 additions and 8 deletions

View File

@ -390,7 +390,7 @@ namespace osu.Desktop.Deploy
public static void AuthenticatedBlockingPerform(this WebRequest r)
{
r.Headers.Add("Authorization", $"token {GitHubAccessToken}");
r.AddHeader("Authorization", $"token {GitHubAccessToken}");
r.Perform();
}
}