Set the operation flag in HTTPRequestOperationWithRequest

This commit is contained in:
Kevin Harwood 2013-03-25 17:26:28 -05:00
parent f64ce9143d
commit 22f5153bb8
2 changed files with 2 additions and 1 deletions

View file

@ -146,7 +146,7 @@ typedef enum {
#endif
/**
The flag to determine if each `AFHTTPRequestOperation` that will be enqueued with `enqueueHTTPRequestOperation:` should accept an invalid SSL certificate. If `_AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_` is set, this property defaults to YES for backwards compatibility support. Otherwise, this property defaults to NO.
The flag to determine if each `AFHTTPRequestOperation` is created in `HTTPRequestOperationWithRequest` should accept an invalid SSL certificate. If `_AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_` is set, this property defaults to YES for backwards compatibility support. Otherwise, this property defaults to NO.
*/
@property (nonatomic,assign) BOOL allowInvalidSSLCertificate;

View file

@ -541,6 +541,7 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {
#ifdef _AFNETWORKING_PIN_SSL_CERTIFICATES_
operation.SSLPinningMode = self.defaultSSLPinningMode;
#endif
operation.allowInvalidSSLCertificate = self.allowInvalidSSLCertificate;
return operation;
}