Skip to content

Commit

Permalink
Fix: aliyun-oss-sdk will url's '/' to '%2f' (#1117 #1705)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
YUDONGLING authored Nov 25, 2023
1 parent 88409cc commit 794c8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/filesystem/driver/oss/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 794c8d6

Please sign in to comment.