Set the operation flag in HTTPRequestOperationWithRequest
This commit is contained in:
parent
f64ce9143d
commit
22f5153bb8
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue