summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-28 11:42:35 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:29 -0800
commitf9b36dae4a0101e84b11aafb50b2ba85c83d4ca2 (patch)
tree4bc4df59cacba262060b8e2293ea88fcb50d5701
parentf65d0837eaa3ec78995ee363263cccfc76d9e7f9 (diff)
Neuter the diversion mechanism: appcache FAIL.
-rw-r--r--MobileCydia.mm6
1 files changed, 4 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index e8ee0c7..18f1a0e 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4637,11 +4637,13 @@ static NSMutableSet *Diversions_;
[window setValue:cydia_ forKey:@"cydia"];
}
+- (NSURL *) URLWithURL:(NSURL *)url {
+ return [Diversion divertURL:url];
+}
+
- (NSURLRequest *) webView:(WebView *)view resource:(id)resource willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source {
NSMutableURLRequest *copy([[super webView:view resource:resource willSendRequest:request redirectResponse:response fromDataSource:source] mutableCopy]);
- [copy setURL:[Diversion divertURL:[copy URL]]];
-
if (System_ != NULL)
[copy setValue:System_ forHTTPHeaderField:@"X-System"];
if (Machine_ != NULL)