fix: 修复OSS头像预签名下载
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user