Skip to content
Merged

S3 #41

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion qcloud_cos/cos_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def send_request(self, method, url, timeout=30, **kwargs):
timeout = self._conf._timeout
if self._conf._token is not None:
kwargs['headers']['x-cos-security-token'] = self._conf._token
kwargs['headers']['User-Agent'] = 'cos-python-sdk-v5.4.1'
kwargs['headers']['User-Agent'] = 'cos-python-sdk-v5.1.4.0'
try:
for j in range(self._retry):
if method == 'POST':
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions qcloud_cos/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from qcloud_cos import CosServiceError
from qcloud_cos import CosClientError

import sys
import logging

# 腾讯云COSV5Python SDK, 目前可以支持Python2.6与Python2.7
Expand Down