Skip to content

Commit 0dba8e1

Browse files
committed
add no response error
1 parent 590deeb commit 0dba8e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

QiniuSDK/Http/QNResponseInfo.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ - (instancetype)initWithResponseInfoHost:(NSString *)host
164164
_statusCode = (int)error.code;
165165
_message = [NSString stringWithFormat:@"%@", error];
166166
_responseDictionary = nil;
167+
} else {
168+
_statusCode = -9;
169+
_message = @"no response";
167170
}
168171
}
169172
return self;

0 commit comments

Comments
 (0)