Skip to content

Commit 07e1fd3

Browse files
author
libertyzhu
committed
...
1 parent 554d458 commit 07e1fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qcloud_cos/cos_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def send_request(self, method, url, bucket, timeout=30, cos_request=True, ci_req
400400
logger.exception('url:%s, retry_time:%d exception:%s' % (url, j, str(e)))
401401
if j < self._retry and (isinstance(e, ConnectionError) or isinstance(e, Timeout)): # 只重试网络错误
402402
if client_can_retry(file_position, **kwargs):
403-
if not 'x-cos-request-id' in res.headers and not domain_switched and self._conf._auto_switch_domain_on_retry and self._conf._ip is None:
403+
if not domain_switched and self._conf._auto_switch_domain_on_retry and self._conf._ip is None:
404404
url = switch_hostname_for_url(url)
405405
domain_switched = True
406406
continue

0 commit comments

Comments
 (0)