Add major version to changes request

pull/2/head
Mark McDowall 11 years ago
parent 2ad2859618
commit 04f07aefe1

@ -1,6 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using NzbDrone.Common; using NzbDrone.Common;
using NzbDrone.Common.EnvironmentInfo;
using RestSharp; using RestSharp;
using NzbDrone.Core.Rest; using NzbDrone.Core.Rest;
@ -36,6 +37,7 @@ namespace NzbDrone.Core.Update
var request = new RestRequest("/v1/update/{branch}/changes"); var request = new RestRequest("/v1/update/{branch}/changes");
request.AddParameter("majorVersion", BuildInfo.Version.Major);
request.AddUrlSegment("branch", branch); request.AddUrlSegment("branch", branch);
var updates = restClient.ExecuteAndValidate<List<UpdatePackage>>(request); var updates = restClient.ExecuteAndValidate<List<UpdatePackage>>(request);

Loading…
Cancel
Save