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
pull/3234/head
Darren Yu 1 week ago committed by GitHub
parent 2725bd47b5
commit 2ecc7f4f59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 {

Loading…
Cancel
Save