From a02c6771cfb001cae167af19052c38e917df7d12 Mon Sep 17 00:00:00 2001 From: Alexander Dodatko Date: Mon, 30 Jul 2018 12:18:19 +0300 Subject: [PATCH] set url scheme to HTTPS to silence the ios security warnings --- .../JiveAuthenticatingHTTPProtocolDemo/ViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JiveAuthenticatingHTTPProtocolDemo/JiveAuthenticatingHTTPProtocolDemo/ViewController.m b/JiveAuthenticatingHTTPProtocolDemo/JiveAuthenticatingHTTPProtocolDemo/ViewController.m index f3e1818..b1805ec 100644 --- a/JiveAuthenticatingHTTPProtocolDemo/JiveAuthenticatingHTTPProtocolDemo/ViewController.m +++ b/JiveAuthenticatingHTTPProtocolDemo/JiveAuthenticatingHTTPProtocolDemo/ViewController.m @@ -30,7 +30,7 @@ - (void)viewDidLoad { [JAHPAuthenticatingHTTPProtocol setDelegate:self]; [JAHPAuthenticatingHTTPProtocol start]; self.webView.delegate = self; - [self.webView loadRequest:[[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"http://httpbin.org/basic-auth/foo/bar"]]]; + [self.webView loadRequest:[[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://httpbin.org/basic-auth/foo/bar"]]]; } #pragma mark - JAHPAuthenticatingHTTPProtocolDelegate @@ -127,7 +127,7 @@ - (JAHPDidCancelAuthenticationChallengeHandler)authenticatingHTTPProtocol:(JAHPA // Then all logs will go to the `authenticatingHTTPProtocol:logMessage:` method // //- (void)authenticatingHTTPProtocol:(JAHPAuthenticatingHTTPProtocol *)authenticatingHTTPProtocol logWithFormat:(NSString *)format arguments:(va_list)arguments { -// +// // NSLog(@"logWithFormat: %@", [[NSString alloc] initWithFormat:format arguments:arguments]); //}