diff --git a/JiveAuthenticatingHTTPProtocolDemo/JiveAuthenticatingHTTPProtocolDemo/ViewController.m b/JiveAuthenticatingHTTPProtocolDemo/JiveAuthenticatingHTTPProtocolDemo/ViewController.m index 0b3c7e0..633cba6 100644 --- a/JiveAuthenticatingHTTPProtocolDemo/JiveAuthenticatingHTTPProtocolDemo/ViewController.m +++ b/JiveAuthenticatingHTTPProtocolDemo/JiveAuthenticatingHTTPProtocolDemo/ViewController.m @@ -89,15 +89,8 @@ - (JAHPDidCancelAuthenticationChallengeHandler)authenticatingHTTPProtocol:(JAHPA self.authAlertView.alertViewStyle = UIAlertViewStyleLoginAndPasswordInput; [self.authAlertView show]; -// JAHPDidCancelAuthenticationChallengeHandler logCancelEvent = -// ^void(JAHPAuthenticatingHTTPProtocol * __nonnull authenticatingHTTPProtocol, -// NSURLAuthenticationChallenge * __nonnull challenge) -// { -// NSLog(@"=== JAHPDidCancelAuthenticationChallengeHandler") -// } - //return logCancelEvent; - return nil; + } // authenticatingHTTPProtocol:didReceiveAuthenticationChallenge: - (void)authenticatingHTTPProtocol:(JAHPAuthenticatingHTTPProtocol *)authenticatingHTTPProtocol @@ -163,7 +156,6 @@ - (JAHPDidCancelAuthenticationChallengeHandler)authenticatingHTTPProtocol:(JAHPA -(void)handleAuthChallenge:(NSURLAuthenticationChallenge*)challenge forProtocol:(JAHPAuthenticatingHTTPProtocol*)authenticatingHTTPProtocol { - // TODO: maybe fix leaking `self` NSInteger cancelButtonIndex = self.authAlertView.cancelButtonIndex; [self.authAlertView dismissWithClickedButtonIndex: cancelButtonIndex