Error when distributive url has get params

Jan 20, 2012 at 11:26 PM

Hi! There is an error when NetSparkle wants to dowload and save update with GET parameter. The bug in parsing the link:

Current parsing algorithm returns my_update123.msi?need_update=true and exception raises when NetSparkle want to save such file.

Want to propose to change the NetSparkleDownloadProgress constructor. Parse link and create temp file as following:

// get the filename of the download lin
var fileName = Path.GetFileName(new Uri(item.DownloadLink).AbsolutePath);
// get temp path
_tempName = Path.Combine(Path.GetTempPath(), fileName);