Skip to content

Commit

Permalink
set url scheme to HTTPS to silence the ios security warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Dodatko committed Jul 30, 2018
1 parent e8763d2 commit a02c677
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]);
//}

Expand Down

0 comments on commit a02c677

Please sign in to comment.