]> git.saurik.com Git - cydia.git/commitdiff
Add -[CyteWebViewController setRequest:].
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 14 Mar 2011 09:39:15 +0000 (02:39 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 14 Mar 2011 12:09:11 +0000 (05:09 -0700)
CyteKit/WebViewController.h
CyteKit/WebViewController.mm

index b6cd768ba13589dd3882bfa962c7c402302ad82f..d779468a6a9df62febd24f6ac9cfd50ce517f0e7 100644 (file)
 
 - (CyteWebView *) webView;
 
+- (void) setRequest:(NSURLRequest *)request;
 - (void) setURL:(NSURL *)url;
 
 - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy;
index 4b2116f3f01da29709a6b1462a280d77c21c42da..d7a8594d65fb74cc4543cb49232b4488b0d3458c 100644 (file)
@@ -167,9 +167,13 @@ float CYScrollViewDecelerationRateNormal;
     ];
 }
 
-- (void) setURL:(NSURL *)url {
+- (void) setRequest:(NSURLRequest *)request {
     _assert(request_ == nil);
-    request_ = [self requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy];
+    request_ = request;
+}
+
+- (void) setURL:(NSURL *)url {
+    [self setRequest:[self requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy]];
 }
 
 - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy {