Skip to content

Commit

Permalink
fix(189cloud): link force https (close #821)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Mar 26, 2022
1 parent a5b757b commit d9652e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/189/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
log "github.com/sirupsen/logrus"
"net/http"
"path/filepath"
"strings"
)

type Cloud189 struct{}
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit d9652e2

Please sign in to comment.