fix(cos): missing response-content-disposition header when enable not sign for CDN url (#2546) (#3202)

* fix(cos): missing response-content-disposition header for public-read bucket

* fix(cos): anonymous GET req not support response header
This commit is contained in:
Darren Yu
2026-01-23 15:30:35 +08:00
committed by GitHub
parent 2725bd47b5
commit 2ecc7f4f59

View File

@@ -416,8 +416,10 @@ func (handler Driver) signSourceURL(ctx context.Context, path string, expire *ti
file.Path = path
// 非签名URL不支持设置响应header
options.ContentDescription = ""
// 公有空间不支持设置响应header
if !handler.policy.IsPrivate {
options.ContentDescription = ""
}
optionQuery, err := query.Values(*options)
if err != nil {