From f9b36dae4a0101e84b11aafb50b2ba85c83d4ca2 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 28 Feb 2011 11:42:35 -0800 Subject: Neuter the diversion mechanism: appcache FAIL. --- MobileCydia.mm | 6 ++++-- 1 file 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) -- cgit v1.2.3