summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-07-30 08:37:13 +0000
committerJay Freeman <saurik@saurik.com>2008-07-30 08:37:13 +0000
commitf9618d7c891224e3c4d5dd57f9841070451907cc (patch)
tree193272e5931bad9bb8702dd6300461332bdd647e /data
parentc14bbdc8ac5390ebeb925f67fcb2be4021946e15 (diff)
Fixed If-Last-Modified support in APT to be correct.
git-svn-id: http://svn.telesphoreo.org/trunk@406 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data')
-rw-r--r--data/apt/cfnetwork.diff2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/apt/cfnetwork.diff b/data/apt/cfnetwork.diff
index 672208e0e..f4c170084 100644
--- a/data/apt/cfnetwork.diff
+++ b/data/apt/cfnetwork.diff
@@ -168,7 +168,7 @@ diff -ru apt-0.6.46.4.1/methods/http.cc apt-0.6.46.4.1+iPhone/methods/http.cc
+ 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);
+ }