Changeset 406

Show
Ignore:
Timestamp:
07/30/08 08:37:13 (5 months ago)
Author:
saurik
Message:

Fixed If-Last-Modified support in APT to be correct.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/data/apt/cfnetwork.diff

    r402 r406  
    169169+         CFRelease(sr); 
    170170+      } else if (Queue->LastModified != 0) { 
    171 +         sr = CFStringCreateWithCString(kCFAllocatorDefault, TimeRFC1123(SBuf.st_mtime).c_str(), se); 
     171+         sr = CFStringCreateWithCString(kCFAllocatorDefault, TimeRFC1123(Queue->LastModified).c_str(), se); 
    172172+         CFHTTPMessageSetHeaderFieldValue(hm, CFSTR("If-Modified-Since"), sr); 
    173173+         CFRelease(sr);