Error when distributive url has get params

Jan 21, 2012 at 12:26 AM

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);