fix oss: got 403 in TestContinueStreamAppendLarge
Signed-off-by: tgic <farmer1992@gmail.com>
This commit is contained in:
parent
440664a109
commit
a9c3f86ce0
@ -492,7 +492,7 @@ func (d *driver) WriteStream(ctx context.Context, path string, offset int64, rea
|
|||||||
// currentLength >= offset >= chunkSize
|
// currentLength >= offset >= chunkSize
|
||||||
_, part, err = multi.PutPartCopy(partNumber,
|
_, part, err = multi.PutPartCopy(partNumber,
|
||||||
oss.CopyOptions{CopySourceOptions: "bytes=0-" + strconv.FormatInt(offset-1, 10)},
|
oss.CopyOptions{CopySourceOptions: "bytes=0-" + strconv.FormatInt(offset-1, 10)},
|
||||||
d.Bucket.Name+"/"+d.ossPath(path))
|
d.Bucket.Path(d.ossPath(path)))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
@ -586,7 +586,7 @@ func (d *driver) WriteStream(ctx context.Context, path string, offset int64, rea
|
|||||||
// offset > currentLength >= chunkSize
|
// offset > currentLength >= chunkSize
|
||||||
_, part, err = multi.PutPartCopy(partNumber,
|
_, part, err = multi.PutPartCopy(partNumber,
|
||||||
oss.CopyOptions{},
|
oss.CopyOptions{},
|
||||||
d.Bucket.Name+"/"+d.ossPath(path))
|
d.Bucket.Path(d.ossPath(path)))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user