summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
Diffstat (limited to 'MobileCydia.mm')
-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)