Skip to content

Commit 8cc8ed3

Browse files
committed
change host retry logic
1 parent 95aba37 commit 8cc8ed3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

QiniuSDK/Http/QNResponseInfo.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ - (BOOL)couldRegionRetry{
220220
}
221221

222222
- (BOOL)couldHostRetry{
223-
if ([self couldRegionRetry] == NO
224-
|| (_statusCode == 502 || _statusCode == 503 || _statusCode == 571)) {
223+
if ([self couldRegionRetry] == NO || _statusCode == 571) {
225224
return NO;
226225
} else {
227226
return YES;

0 commit comments

Comments
 (0)