1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

fichier: add cdn option to use CDN for download - Fixes #6943

This commit is contained in:
Nick Craig-Wood
2023-04-13 18:25:13 +01:00
parent 5b95fd9588
commit 04d2781fda
3 changed files with 10 additions and 0 deletions

View File

@@ -118,6 +118,9 @@ func (f *Fs) getDownloadToken(ctx context.Context, url string) (*GetTokenRespons
Single: 1,
Pass: f.opt.FilePassword,
}
if f.opt.CDN {
request.CDN = 1
}
opts := rest.Opts{
Method: "POST",
Path: "/download/get_token.cgi",