googlephotos: pass options to rest.Opts for Put and Update

vfs-used-is-size
Tim Gallant 2020-03-21 14:52:14 -07:00 committed by Nick Craig-Wood
parent 776966e22c
commit 9ea1361044
1 changed files with 3 additions and 2 deletions

View File

@ -954,8 +954,9 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
// Upload the media item in exchange for an UploadToken
opts := rest.Opts{
Method: "POST",
Path: "/uploads",
Method: "POST",
Path: "/uploads",
Options: options,
ExtraHeaders: map[string]string{
"X-Goog-Upload-File-Name": fileName,
"X-Goog-Upload-Protocol": "raw",