feat: udpate upload content type
This commit is contained in:
@@ -41,7 +41,7 @@ func Provide(opts ...opt.Option) error {
|
||||
WithRegion(config.Region)
|
||||
|
||||
return &OSSClient{
|
||||
client: oss.NewClient(cfg),
|
||||
client: oss.NewClient(cfg.WithUseCName(true).WithEndpoint(*config.Host)),
|
||||
internalClient: oss.NewClient(cfg.WithUseInternalEndpoint(true)),
|
||||
config: &config,
|
||||
}, nil
|
||||
|
||||
Reference in New Issue
Block a user