fix(189cloud): link force https (close #821)

pull/823/head
Xhofe 2022-03-26 21:59:18 +08:00
parent a5b757b251
commit d9652e2a0b
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import (
log "github.com/sirupsen/logrus"
"net/http"
"path/filepath"
"strings"
)
type Cloud189 struct{}
@ -198,6 +199,7 @@ func (driver Cloud189) Link(args base.Args, account *model.Account) (*base.Link,
} else {
link.Url = resp.FileDownloadUrl
}
link.Url = strings.Replace(link.Url, "http://", "https://", 1)
return &link, nil
}