mirror of https://github.com/ArduPilot/ardupilot
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:
parent
8a5108ab96
commit
b7c936d819
|
@ -1391,8 +1391,11 @@ namespace ArdupilotMega
|
|||
{
|
||||
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;
|
||||
Console.WriteLine("NEW FILE " + file);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue