Minor reformatting
This commit is contained in:
parent
9cbc749d40
commit
b838dd85c1
3 changed files with 3 additions and 3 deletions
|
|
@ -150,7 +150,7 @@ typedef enum {
|
|||
|
||||
If `_AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_` is set, this property defaults to `YES` for backwards compatibility. Otherwise, this property defaults to `NO`.
|
||||
*/
|
||||
@property (nonatomic,assign) BOOL allowsInvalidSSLCertificate;
|
||||
@property (nonatomic, assign) BOOL allowsInvalidSSLCertificate;
|
||||
|
||||
///---------------------------------------------
|
||||
/// @name Creating and Initializing HTTP Clients
|
||||
|
|
|
|||
|
|
@ -1102,7 +1102,7 @@ static const NSUInteger AFMultipartBodyStreamProviderDefaultBufferLength = 4096;
|
|||
|
||||
[_buffer setLength:numberOfBytesRead];
|
||||
|
||||
if(numberOfBytesRead == 0) {
|
||||
if (numberOfBytesRead == 0) {
|
||||
self.currentHTTPBodyPart = nil;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -637,7 +637,7 @@ willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challe
|
|||
- (BOOL)connection:(NSURLConnection *)connection
|
||||
canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace
|
||||
{
|
||||
if(self.allowsInvalidSSLCertificate == YES &&
|
||||
if (self.allowsInvalidSSLCertificate &&
|
||||
[protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) {
|
||||
return YES;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue