Skip to content

Commit cd0fec4

Browse files
author
Lars Steiger
committed
Respond to authentication challenge, fixes timeout on OS X 10.10. Thanks to @eelco.
1 parent 2e16bb9 commit cd0fec4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

FsprgEmbeddedStore/FsprgEmbeddedStoreController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)