Skip to content

Commit c36f6ad

Browse files
authored
Merge pull request #198 from withchao/main
fix: oss no longer supports setting response-content-type
2 parents c0c38e1 + 1632da2 commit c36f6ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

s3/oss/oss.go

+3
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ func (o *OSS) AccessURL(ctx context.Context, name string, expire time.Duration,
294294
opt.Filename = ""
295295
opt.ContentType = ""
296296
}
297+
if opt != nil {
298+
opt.ContentType = ""
299+
}
297300
var opts []oss.Option
298301
if opt != nil {
299302
if opt.Image != nil {

0 commit comments

Comments
 (0)