mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 13:04:42 +08:00
opendrive: pass options to rest.Opts for Put and Update
This commit is contained in:
parent
01cb256b84
commit
776966e22c
|
@ -688,6 +688,7 @@ func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options .
|
||||||
}
|
}
|
||||||
opts := rest.Opts{
|
opts := rest.Opts{
|
||||||
Method: "POST",
|
Method: "POST",
|
||||||
|
Options: options,
|
||||||
Path: "/upload/create_file.json",
|
Path: "/upload/create_file.json",
|
||||||
}
|
}
|
||||||
resp, err = o.fs.srv.CallJSON(ctx, &opts, &createFileData, &response)
|
resp, err = o.fs.srv.CallJSON(ctx, &opts, &createFileData, &response)
|
||||||
|
@ -971,6 +972,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
|
||||||
// fs.Debugf(nil, "PreOpen: %#v", openUploadData)
|
// fs.Debugf(nil, "PreOpen: %#v", openUploadData)
|
||||||
opts := rest.Opts{
|
opts := rest.Opts{
|
||||||
Method: "POST",
|
Method: "POST",
|
||||||
|
Options: options,
|
||||||
Path: "/upload/open_file_upload.json",
|
Path: "/upload/open_file_upload.json",
|
||||||
}
|
}
|
||||||
resp, err := o.fs.srv.CallJSON(ctx, &opts, &openUploadData, &openResponse)
|
resp, err := o.fs.srv.CallJSON(ctx, &opts, &openUploadData, &openResponse)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user