1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

added version to query string

This commit is contained in:
Mark McDowall 2013-08-23 19:45:59 -07:00
parent c6bbc52631
commit eefe44caa5

View File

@ -30,7 +30,7 @@ public UpdatePackageProvider(IConfigFileProvider configFileProvider, IHttpProvid
public UpdatePackage GetLatestUpdate()
{
var url = String.Format("{0}/v1/update/{1}?{2}", Services.RootUrl, _configFileProvider.Branch, BuildInfo.Version);
var url = String.Format("{0}/v1/update/{1}?version={2}", Services.RootUrl, _configFileProvider.Branch, BuildInfo.Version);
var update = JsonConvert.DeserializeObject<UpdatePackageAvailable>(_httpProvider.DownloadString(url));
if (!update.Available) return null;