diff --git a/upyun/upyun.go b/upyun/upyun.go index 6743d01..9a52f91 100644 --- a/upyun/upyun.go +++ b/upyun/upyun.go @@ -38,6 +38,7 @@ func NewUpYun(config *UpYunConfig) *UpYun { up.Password = md5Str(config.Password) up.Secret = config.Secret up.Hosts = config.Hosts + up.UseHTTP = config.UseHTTP if config.UserAgent != "" { up.UserAgent = config.UserAgent } else {