Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarinofaggiana <marino@marinofaggiana.com>2020-04-20 12:06:47 +0300
committermarinofaggiana <marino@marinofaggiana.com>2020-04-20 12:06:47 +0300
commitf5151a80c4376edfded9aa76a588c4f927607d17 (patch)
tree0e5d1f82c04abb3e0e2a8ec30519c6bab6dd6088 /Carthage
parenta5a3f83a7ba26fc7b005b33b5c8b821b61439549 (diff)
build 33
Diffstat (limited to 'Carthage')
-rw-r--r--Carthage/Checkouts/KTVHTTPCache/KTVHTTPCache/Classes/KTVHCDownload/KTVHCDownload.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Carthage/Checkouts/KTVHTTPCache/KTVHTTPCache/Classes/KTVHCDownload/KTVHCDownload.m b/Carthage/Checkouts/KTVHTTPCache/KTVHTTPCache/Classes/KTVHCDownload/KTVHCDownload.m
index ad799bf6a..e30de620b 100644
--- a/Carthage/Checkouts/KTVHTTPCache/KTVHTTPCache/Classes/KTVHCDownload/KTVHCDownload.m
+++ b/Carthage/Checkouts/KTVHTTPCache/KTVHTTPCache/Classes/KTVHCDownload/KTVHCDownload.m
@@ -231,6 +231,11 @@ NSString * const KTVHCContentTypeBinaryOctetStream = @"binary/octet-stream"
[self unlock];
}
+- (void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler
+{
+ completionHandler(NSURLSessionAuthChallengeUseCredential, [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust]);
+}
+
- (void)lock
{
if (!self.coreLock) {