From 2558ff5047ba88692ff280b3c3b2e91e18cc25bf Mon Sep 17 00:00:00 2001 From: lewzylu <327874225@qq.com> Date: Wed, 15 Mar 2023 14:55:04 +0800 Subject: [PATCH] update to 1.8.6.31 (#298) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * x-cos-tagging support * update to 1.8.6.31 --------- Co-authored-by: lewzylu(卢众意) --- coscmd/cos_comm.py | 4 +--- coscmd/cos_global.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/coscmd/cos_comm.py b/coscmd/cos_comm.py index 84bccbc..8e5f203 100644 --- a/coscmd/cos_comm.py +++ b/coscmd/cos_comm.py @@ -68,10 +68,8 @@ def mapped(headers): for i in headers: if i in maplist: _headers[maplist[i]] = headers[i] - elif i.startswith('x-cos-meta-'): - _meta[i] = headers[i] else: - _headers[headers[i]] = headers[i] + _meta[i] = headers[i] if len(_meta) > 0: _headers['Metadata'] = _meta return _headers diff --git a/coscmd/cos_global.py b/coscmd/cos_global.py index 8d33947..0b0cdd0 100644 --- a/coscmd/cos_global.py +++ b/coscmd/cos_global.py @@ -1 +1 @@ -Version = "1.8.6.30" +Version = "1.8.6.31"