Added UserAgent to RestClient.

This commit is contained in:
Taloth Saldono
2014-07-20 13:36:31 +02:00
committed by Mark McDowall
parent e9f39493f4
commit 9a649cf58e
14 changed files with 48 additions and 15 deletions
@@ -17,7 +17,7 @@ namespace NzbDrone.Core.Update
{
public UpdatePackage GetLatestUpdate(string branch, Version currentVersion)
{
var restClient = new RestClient(Services.RootUrl);
var restClient = RestClientFactory.BuildClient(Services.RootUrl);
var request = new RestRequest("/v1/update/{branch}");
@@ -34,7 +34,7 @@ namespace NzbDrone.Core.Update
public List<UpdatePackage> GetRecentUpdates(string branch)
{
var restClient = new RestClient(Services.RootUrl);
var restClient = RestClientFactory.BuildClient(Services.RootUrl);
var request = new RestRequest("/v1/update/{branch}/changes");