the calculated ETag should be compared to the stored ETag
Thanks to @amiraliakbari for tracking this down! closes fdroid/fdroidclient#1737
This commit is contained in:
parent
8d60f40e98
commit
86908ceeaa
@ -147,9 +147,9 @@ public class HttpDownloader extends Downloader {
|
|||||||
} else {
|
} else {
|
||||||
String calcedETag = String.format("\"%x-%x\"",
|
String calcedETag = String.format("\"%x-%x\"",
|
||||||
tmpConn.getLastModified() / 1000, contentLength);
|
tmpConn.getLastModified() / 1000, contentLength);
|
||||||
if (calcedETag.equals(headETag)) {
|
if (cacheTag.equals(calcedETag)) {
|
||||||
Utils.debugLog(TAG, urlString + " cached based on calced ETag, not downloading: " +
|
Utils.debugLog(TAG, urlString + " cached based on calced ETag, not downloading: " +
|
||||||
headETag);
|
calcedETag);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user