@@ -176,11 +176,11 @@ - (NSMutableURLRequest *)requestByFinalizingMultipartFormData;
176
176
#pragma mark -
177
177
178
178
@interface AFHTTPClient ()
179
- @property (readwrite , nonatomic ) NSURL *baseURL;
180
- @property (readwrite , nonatomic ) NSMutableArray *registeredHTTPOperationClassNames;
181
- @property (readwrite , nonatomic ) NSMutableDictionary *defaultHeaders;
182
- @property (readwrite , nonatomic ) NSURLCredential *defaultCredential;
183
- @property (readwrite , nonatomic ) NSOperationQueue *operationQueue;
179
+ @property (readwrite , nonatomic , strong ) NSURL *baseURL;
180
+ @property (readwrite , nonatomic , strong ) NSMutableArray *registeredHTTPOperationClassNames;
181
+ @property (readwrite , nonatomic , strong ) NSMutableDictionary *defaultHeaders;
182
+ @property (readwrite , nonatomic , strong ) NSURLCredential *defaultCredential;
183
+ @property (readwrite , nonatomic , strong ) NSOperationQueue *operationQueue;
184
184
#ifdef _SYSTEMCONFIGURATION_H
185
185
@property (readwrite , nonatomic , assign ) AFNetworkReachabilityRef networkReachability;
186
186
@property (readwrite , nonatomic , assign ) AFNetworkReachabilityStatus networkReachabilityStatus;
@@ -199,6 +199,7 @@ @implementation AFHTTPClient
199
199
@synthesize parameterEncoding = _parameterEncoding;
200
200
@synthesize registeredHTTPOperationClassNames = _registeredHTTPOperationClassNames;
201
201
@synthesize defaultHeaders = _defaultHeaders;
202
+ @synthesize defaultCredential = _defaultCredential;
202
203
@synthesize operationQueue = _operationQueue;
203
204
#ifdef _SYSTEMCONFIGURATION_H
204
205
@synthesize networkReachability = _networkReachability;
@@ -711,7 +712,7 @@ - (id)copyWithZone:(NSZone *)zone {
711
712
712
713
static NSString * const kAFMultipartFormCRLF = @" \r\n " ;
713
714
714
- static NSInteger const kAFStreamToStreamBufferSize = 1024 * 1024 ; // 1 meg default
715
+ static NSInteger const kAFStreamToStreamBufferSize = 1024 * 1024 ; // 1 meg default
715
716
716
717
static inline NSString * AFMultipartFormInitialBoundary () {
717
718
return [NSString stringWithFormat: @" --%@%@ " , kAFMultipartFormBoundary , kAFMultipartFormCRLF ];
@@ -749,7 +750,8 @@ @interface AFHTTPBodyPart : NSObject
749
750
@property (nonatomic , readonly , getter = hasBytesAvailable) BOOL bytesAvailable;
750
751
@property (nonatomic , readonly ) unsigned long long contentLength;
751
752
752
- - (NSInteger )read : (uint8_t *)buffer maxLength : (NSUInteger )length ;
753
+ - (NSInteger )read : (uint8_t *)buffer
754
+ maxLength : (NSUInteger )length ;
753
755
@end
754
756
755
757
@interface AFMultipartBodyStream : NSInputStream <NSStreamDelegate >
@@ -953,7 +955,9 @@ - (BOOL)isEmpty {
953
955
954
956
#pragma mark - NSInputStream
955
957
956
- - (NSInteger )read : (uint8_t *)buffer maxLength : (NSUInteger )length {
958
+ - (NSInteger )read : (uint8_t *)buffer
959
+ maxLength : (NSUInteger )length
960
+ {
957
961
if ([self streamStatus ] == NSStreamStatusClosed) {
958
962
return 0 ;
959
963
}
@@ -974,7 +978,9 @@ - (NSInteger)read:(uint8_t *)buffer maxLength:(NSUInteger)length {
974
978
return bytesRead;
975
979
}
976
980
977
- - (BOOL )getBuffer : (__unused uint8_t **)buffer length : (__unused NSUInteger *)len {
981
+ - (BOOL )getBuffer : (__unused uint8_t **)buffer
982
+ length : (__unused NSUInteger *)len
983
+ {
978
984
return NO ;
979
985
}
980
986
@@ -1003,7 +1009,9 @@ - (id)propertyForKey:(__unused NSString *)key {
1003
1009
return nil ;
1004
1010
}
1005
1011
1006
- - (BOOL )setProperty : (__unused id )property forKey : (__unused NSString *)key {
1012
+ - (BOOL )setProperty : (__unused id )property
1013
+ forKey : (__unused NSString *)key
1014
+ {
1007
1015
return NO ;
1008
1016
}
1009
1017
@@ -1057,6 +1065,9 @@ @interface AFHTTPBodyPart () {
1057
1065
}
1058
1066
1059
1067
- (BOOL )transitionToNextPhase ;
1068
+ - (NSInteger )readData : (NSData *)data
1069
+ intoBuffer : (uint8_t *)buffer
1070
+ maxLength : (NSUInteger )length ;
1060
1071
@end
1061
1072
1062
1073
@implementation AFHTTPBodyPart
@@ -1132,7 +1143,9 @@ - (BOOL)hasBytesAvailable {
1132
1143
}
1133
1144
}
1134
1145
1135
- - (NSInteger )read : (uint8_t *)buffer maxLength : (NSUInteger )length {
1146
+ - (NSInteger )read : (uint8_t *)buffer
1147
+ maxLength : (NSUInteger )length
1148
+ {
1136
1149
NSInteger bytesRead = 0 ;
1137
1150
1138
1151
if (_phase == AFEncapsulationBoundaryPhase) {
0 commit comments