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
7b2ad31c5c
commit
d27ef3e7e2
@ -147,9 +147,9 @@ public class HttpDownloader extends Downloader {
|
||||
} else {
|
||||
String calcedETag = String.format("\"%x-%x\"",
|
||||
tmpConn.getLastModified() / 1000, contentLength);
|
||||
if (calcedETag.equals(headETag)) {
|
||||
if (cacheTag.equals(calcedETag)) {
|
||||
Utils.debugLog(TAG, urlString + " cached based on calced ETag, not downloading: " +
|
||||
headETag);
|
||||
calcedETag);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user