Merge pull request #310 from erikchen/user_agent_fix
Rename userAgent -> userAgentString
Showing
2 changed files
with
9 additions
and
9 deletions
| @@ -193,7 +193,7 @@ typedef void (^ASIDataBlock)(NSData *data); | @@ -193,7 +193,7 @@ typedef void (^ASIDataBlock)(NSData *data); | ||
| 193 | NSString *password; | 193 | NSString *password; |
| 194 | 194 | ||
| 195 | // User-Agent for this request | 195 | // User-Agent for this request |
| 196 | - NSString *userAgent; | 196 | + NSString *userAgentString; |
| 197 | 197 | ||
| 198 | // Domain used for NTLM authentication | 198 | // Domain used for NTLM authentication |
| 199 | NSString *domain; | 199 | NSString *domain; |
| @@ -903,7 +903,7 @@ typedef void (^ASIDataBlock)(NSData *data); | @@ -903,7 +903,7 @@ typedef void (^ASIDataBlock)(NSData *data); | ||
| 903 | 903 | ||
| 904 | @property (retain) NSString *username; | 904 | @property (retain) NSString *username; |
| 905 | @property (retain) NSString *password; | 905 | @property (retain) NSString *password; |
| 906 | -@property (retain) NSString *userAgent; | 906 | +@property (retain) NSString *userAgentString; |
| 907 | @property (retain) NSString *domain; | 907 | @property (retain) NSString *domain; |
| 908 | 908 | ||
| 909 | @property (retain) NSString *proxyUsername; | 909 | @property (retain) NSString *proxyUsername; |
| @@ -392,7 +392,7 @@ static NSOperationQueue *sharedQueue = nil; | @@ -392,7 +392,7 @@ static NSOperationQueue *sharedQueue = nil; | ||
| 392 | [connectionInfo release]; | 392 | [connectionInfo release]; |
| 393 | [requestID release]; | 393 | [requestID release]; |
| 394 | [dataDecompressor release]; | 394 | [dataDecompressor release]; |
| 395 | - [userAgent release]; | 395 | + [userAgentString release]; |
| 396 | 396 | ||
| 397 | #if NS_BLOCKS_AVAILABLE | 397 | #if NS_BLOCKS_AVAILABLE |
| 398 | [self releaseBlocksOnMainThread]; | 398 | [self releaseBlocksOnMainThread]; |
| @@ -1088,12 +1088,12 @@ static NSOperationQueue *sharedQueue = nil; | @@ -1088,12 +1088,12 @@ static NSOperationQueue *sharedQueue = nil; | ||
| 1088 | 1088 | ||
| 1089 | // Build and set the user agent string if the request does not already have a custom user agent specified | 1089 | // Build and set the user agent string if the request does not already have a custom user agent specified |
| 1090 | if (![[self requestHeaders] objectForKey:@"User-Agent"]) { | 1090 | if (![[self requestHeaders] objectForKey:@"User-Agent"]) { |
| 1091 | - NSString *userAgentString = [self userAgent]; | 1091 | + NSString *tempUserAgentString = [self userAgentString]; |
| 1092 | - if (!userAgentString) { | 1092 | + if (!tempUserAgentString) { |
| 1093 | - userAgentString = [ASIHTTPRequest defaultUserAgentString]; | 1093 | + tempUserAgentString = [ASIHTTPRequest defaultUserAgentString]; |
| 1094 | } | 1094 | } |
| 1095 | - if (userAgentString) { | 1095 | + if (tempUserAgentString) { |
| 1096 | - [self addRequestHeader:@"User-Agent" value:userAgentString]; | 1096 | + [self addRequestHeader:@"User-Agent" value:tempUserAgentString]; |
| 1097 | } | 1097 | } |
| 1098 | } | 1098 | } |
| 1099 | 1099 | ||
| @@ -4999,7 +4999,7 @@ static NSOperationQueue *sharedQueue = nil; | @@ -4999,7 +4999,7 @@ static NSOperationQueue *sharedQueue = nil; | ||
| 4999 | 4999 | ||
| 5000 | @synthesize username; | 5000 | @synthesize username; |
| 5001 | @synthesize password; | 5001 | @synthesize password; |
| 5002 | -@synthesize userAgent; | 5002 | +@synthesize userAgentString; |
| 5003 | @synthesize domain; | 5003 | @synthesize domain; |
| 5004 | @synthesize proxyUsername; | 5004 | @synthesize proxyUsername; |
| 5005 | @synthesize proxyPassword; | 5005 | @synthesize proxyPassword; |
-
Please register or login to post a comment