mirror of
https://github.com/cloudreve/cloudreve.git
synced 2026-03-03 02:27:00 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user