]> git.saurik.com Git - cydia.git/commitdiff
CachedURLs_ contains URLs, not hrefs.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 15 Mar 2011 07:02:56 +0000 (00:02 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 15 Mar 2011 07:04:29 +0000 (00:04 -0700)
MobileCydia.mm

index 41bb1fc67d94cab4bc95b265e200c989cc07b88d..dde98463800d11dbecf91b383ce52cb04b724da0 100644 (file)
@@ -9974,7 +9974,6 @@ MSHook(id, NSURLConnection$init$, NSURLConnection *self, SEL _cmd, NSURLRequest
 
     NSURL *url([copy URL]);
 
-    NSString *href([url absoluteString]);
     NSString *host([url host]);
     NSString *scheme([[url scheme] lowercaseString]);
 
@@ -9987,9 +9986,9 @@ MSHook(id, NSURLConnection$init$, NSURLConnection *self, SEL _cmd, NSURLRequest
 
         if (NSString *control = [copy valueForHTTPHeaderField:@"Cache-Control"])
             if ([control isEqualToString:@"max-age=0"])
-                if ([CachedURLs_ containsObject:href]) {
+                if ([CachedURLs_ containsObject:url]) {
 #if !ForRelease
-                    NSLog(@"~~~: %@", href);
+                    NSLog(@"~~~: %@", url);
 #endif
 
                     [copy setCachePolicy:NSURLRequestReturnCacheDataDontLoad];