diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-25 11:40:31 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:19 -0800 |
commit | 61c10d56432e4cdcfea2138f8d7f7b022b6c6973 (patch) | |
tree | 2d8f6ec769a1d8ae342df2a7b11216d6fa434785 | |
parent | 8804004f7cb57e6149ec75d6bb9badd0f22ecb6b (diff) |
Remove obsolete -[CYBrowserController setHeaders:forHost:].
-rw-r--r-- | MobileCydia.mm | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 1c700e5..9e80598 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4562,28 +4562,15 @@ static NSString *Warning_; return [NSURL URLWithString:[NSString stringWithFormat:@"cydia://url/%@", [[[webview_ request] URL] absoluteString]]]; } -- (void) setHeaders:(NSDictionary *)headers forHost:(NSString *)host { -} - - (void) webView:(WebView *)view didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame { [super webView:view didClearWindowObject:window forFrame:frame]; WebDataSource *source([frame dataSource]); NSURLResponse *response([source response]); - NSURL *url([response URL]); - NSString *scheme([[url scheme] lowercaseString]); - NSString *host([url host]); - - if ([response isKindOfClass:[NSHTTPURLResponse class]]) { - NSHTTPURLResponse *http((NSHTTPURLResponse *) response); - NSDictionary *headers([http allHeaderFields]); - [self setHeaders:headers forHost:host]; - } - - if ([scheme isEqualToString:@"https"]) - if ([CydiaHosts_ containsObject:host]) + if ([[[url scheme] lowercaseString] isEqualToString:@"https"]) + if ([CydiaHosts_ containsObject:[url host]]) [window setValue:cydia_ forKey:@"cydia"]; } |