summaryrefslogtreecommitdiff
path: root/CyteKit/WebViewController.mm
diff options
context:
space:
mode:
Diffstat (limited to 'CyteKit/WebViewController.mm')
-rw-r--r--CyteKit/WebViewController.mm8
1 files changed, 6 insertions, 2 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index 4b2116f..d7a8594 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -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 {