summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-15 00:02:56 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-15 00:04:29 -0700
commit3a23d36e830367931450c8ed7c5d641c5b337d9a (patch)
treecded0fdbf48d16ac2e4df665b3238a43843b4f43
parenta02251ae75bcdfb9467f9370ef39012dfd1e6e50 (diff)
CachedURLs_ contains URLs, not hrefs.
-rw-r--r--MobileCydia.mm5
1 files changed, 2 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 41bb1fc..dde9846 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -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];