Minor reformatting

This commit is contained in:
Mattt Thompson 2013-04-17 18:39:50 +02:00
parent 9cbc749d40
commit b838dd85c1
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -1102,7 +1102,7 @@ static const NSUInteger AFMultipartBodyStreamProviderDefaultBufferLength = 4096;
[_buffer setLength:numberOfBytesRead];
if(numberOfBytesRead == 0) {
if (numberOfBytesRead == 0) {
self.currentHTTPBodyPart = nil;
}

View file

@ -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;
}