fix: minio sign endpoint opts

This commit is contained in:
withchao 2023-08-16 18:07:05 +08:00
parent 2997dd4659
commit 49640acc44

View File

@ -84,6 +84,7 @@ func NewMinio() (s3.Interface, error) {
init: false, init: false,
} }
if conf.SignEndpoint == "" || conf.SignEndpoint == conf.Endpoint { if conf.SignEndpoint == "" || conf.SignEndpoint == conf.Endpoint {
m.opts = opts
m.sign = m.core.Client m.sign = m.core.Client
} else { } else {
su, err := url.Parse(conf.SignEndpoint) su, err := url.Parse(conf.SignEndpoint)