Fix: aliyun-oss-sdk will url's '/' to '%2f' (#1117 #1705)

Fix the error of:
1. make download file with real file-name avaliable,
2. fix some signature error if sign url on AWS v4 at cdn sides, etc., rather than Cloudreve.
pull/1897/head
Darren Yu 12 months ago committed by GitHub
parent 88409cc1f0
commit 794c8d6338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -403,7 +403,7 @@ func (handler *Driver) signSourceURL(ctx context.Context, path string, ttl int64
finalURL.Scheme = cdnURL.Scheme
}
return finalURL.String(), nil
return strings.Replace(finalURL.String(), "%2F", "/", -1), nil
}
// Token 获取上传策略和认证Token

Loading…
Cancel
Save