Skip to content

Commit 5bab71a

Browse files
committed
fix
1 parent e2412ac commit 5bab71a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/retry_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace qcloud_cos {
55

66

77
bool RetryUtil::ShouldRetryWithChangeDomain(CosResult result) {
8-
if ((result.GetHttpStatus() != 200 && result.GetXCosRequestId().empty()) && CosSysConfig::GetRetryChangeDomain())
8+
if ((result.GetHttpStatus()/100 != 2 && result.GetXCosRequestId().empty()) && CosSysConfig::GetRetryChangeDomain())
99
{
1010
return true;
1111
}

0 commit comments

Comments
 (0)