mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 12:27:52 +08:00
Fix usage of subscript access in RKHTTPRequestOperation.m refs #1077
This commit is contained in:
@@ -41,7 +41,7 @@ static NSString *RKLogTruncateString(NSString *string)
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
NSDictionary *envVars = [[NSProcessInfo processInfo] environment];
|
||||
maxMessageLength = RKLogIsStringBlank(envVars[@"RKLogMaxLength"]) ? NSIntegerMax : [envVars[@"RKLogMaxLength"] integerValue];
|
||||
maxMessageLength = RKLogIsStringBlank([envVars objectForKey:@"RKLogMaxLength"]) ? NSIntegerMax : [[envVars objectForKey:@"RKLogMaxLength"] integerValue];
|
||||
});
|
||||
|
||||
return ([string length] <= maxMessageLength)
|
||||
|
||||
Reference in New Issue
Block a user