Skip to content

Commit

Permalink
Fix: unable to read file from UPYUN (#472, #472, #836)
Browse files Browse the repository at this point in the history
  • Loading branch information
HFO4 committed May 11, 2021
1 parent 641fe35 commit 8659bdc
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 8659bdc

Please sign in to comment.