]> git.saurik.com Git - apt-legacy.git/blobdiff - methods/http.cc.orig
Fixed If-Last-Modified support in APT to be correct.
[apt-legacy.git] / methods / http.cc.orig
index 10f1ae0ec8917d61101ceab70cdf6372e89e322b..650bad052a21cc2fae8c783ae20b647f4b49b29e 100644 (file)
@@ -1139,7 +1139,7 @@ int HttpMethod::Loop()
          CFHTTPMessageSetHeaderFieldValue(hm, CFSTR("If-Range"), sr);
          CFRelease(sr);
       } else if (Queue->LastModified != 0) {
-         sr = CFStringCreateWithCString(kCFAllocatorDefault, TimeRFC1123(SBuf.st_mtime).c_str(), se);
+         sr = CFStringCreateWithCString(kCFAllocatorDefault, TimeRFC1123(Queue->LastModified).c_str(), se);
          CFHTTPMessageSetHeaderFieldValue(hm, CFSTR("If-Modified-Since"), sr);
          CFRelease(sr);
       }