statusDescription depends on status (and error)

This commit is contained in:
Kelvin Sherlock 2021-07-02 17:38:36 -04:00
parent 796b1f2fc8
commit 9ab4b8373d
1 changed files with 2 additions and 8 deletions

View File

@ -619,15 +619,9 @@ static NSInteger TaskStatusCode(NSURLSessionTask *task) {
} }
} }
#if 0 +(NSSet *)keyPathsForValuesAffectingStatusDescription {
// in practice, error and status set concurrently. return [NSSet setWithObjects: @"error", @"status", nil];
+(NSSet *)keyPathsForValuesAffectingStatus {
static NSSet *set = nil;
if (!set) set = [NSSet setWithObjects: @"error", nil];
return set;
} }
#endif
-(NSString *)statusDescription { -(NSString *)statusDescription {
static NSString *Names[] = { static NSString *Names[] = {