fix: 修复OSS头像预签名下载

This commit is contained in:
richjohnrambo
2026-09-09 14:08:01 +08:00
parent c43c099c5e
commit 4c9bdd64e0
-1
View File
@@ -236,7 +236,6 @@ func (oh *ossHandler) Headers(tenantID types.TenantID, method string, url *url.U
case http.MethodGet:
options := []aliyunoss.Option{
aliyunoss.ResponseCacheControl(oh.conf.CacheControl),
aliyunoss.ResponseContentType(fdef.MimeType),
}
if isAttachment, _ := strconv.ParseBool(url.Query().Get("asatt")); isAttachment {
options = append(options, aliyunoss.ResponseContentDisposition("attachment"))