diff --git a/qcloud_cos/cos_client.py b/qcloud_cos/cos_client.py index f3eff4bb..ce439a9f 100644 --- a/qcloud_cos/cos_client.py +++ b/qcloud_cos/cos_client.py @@ -826,6 +826,7 @@ def restore_object(self, Bucket, Key, RestoreRequest={}, **kwargs): auth=CosS3Auth(self._conf._secret_id, self._conf._secret_key, Key), headers=headers, params=params) + print rt.headers return None # s3 bucket interface begin diff --git a/qcloud_cos/demo.py b/qcloud_cos/demo.py index b88777f1..3d016146 100644 --- a/qcloud_cos/demo.py +++ b/qcloud_cos/demo.py @@ -4,6 +4,7 @@ from qcloud_cos import CosServiceError from qcloud_cos import CosClientError +import sys import logging # 腾讯云COSV5Python SDK, 目前可以支持Python2.6与Python2.7