File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ - (WebView *)webView:(WebView *)sender createWebViewWithRequest:(NSURLRequest *)
334334
335335- (NSURLRequest *)webView : (WebView *)sender resource : (id )identifier willSendRequest : (NSURLRequest *)request redirectResponse : (NSURLResponse *)redirectResponse fromDataSource : (WebDataSource *)dataSource
336336{
337- #if RETRIEVE_SSL_CERTIFICATES
337+ #if RETRIEVE_SSL_CERTIFICATES
338338 NSURL *URL = [request URL ];
339339 NSString *host = [URL host ];
340340 if ([[self hostCertificates ] objectForKey: host] == nil )
@@ -395,6 +395,8 @@ - (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallen
395395 NSURL *URL = [request URL ];
396396 NSString *host = [URL host ];
397397 [[self hostCertificates ] setObject: certificates forKey: host];
398+
399+ [[challenge sender ] useCredential: [NSURLCredential credentialForTrust: trustRef] forAuthenticationChallenge: challenge];
398400}
399401#endif
400402
You can’t perform that action at this time.
0 commit comments