Skip to content

Commit

Permalink
Merge pull request #5 from cloudreve/master
Browse files Browse the repository at this point in the history
Fix: unable to read file from UPYUN (cloudreve#472, cloudreve#472, cloudreve#836)
  • Loading branch information
codesnas committed May 18, 2021
2 parents c3b1996 + 8659bdc commit 34472e6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/filesystem/driver/upyun/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ func (handler Driver) List(ctx context.Context, base string, recursive bool) ([]

// Get 获取文件
func (handler Driver) Get(ctx context.Context, path string) (response.RSCloser, error) {
// 给文件名加上随机参数以强制拉取
path = fmt.Sprintf("%s?v=%d", path, time.Now().UnixNano())

// 获取文件源地址
downloadURL, err := handler.Source(
ctx,
Expand Down

0 comments on commit 34472e6

Please sign in to comment.