APM Planner 1.0.71

fix silly updater issue.
for those with problems download OpenTK.GLControl.dll and replace it.
This commit is contained in:
Michael Oborne 2011-09-18 19:17:41 +08:00
parent 8a5108ab96
commit b7c936d819

View File

@ -1391,8 +1391,11 @@ namespace ArdupilotMega
{ {
FileInfo fi = new FileInfo(path); FileInfo fi = new FileInfo(path);
if (fi.Length != response.ContentLength) if (fi.Length != response.ContentLength) // && response.Headers[HttpResponseHeader.ETag] != "0")
{ {
StreamWriter sw = new StreamWriter(path+".etag");
sw.WriteLine(response.Headers[HttpResponseHeader.ETag]);
sw.Close();
getfile = true; getfile = true;
Console.WriteLine("NEW FILE " + file); Console.WriteLine("NEW FILE " + file);
} }