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

This commit is contained in:
Tim Gallant 2020-03-21 14:52:14 -07:00 committed by Nick Craig-Wood
parent 776966e22c
commit 9ea1361044

View File

@ -956,6 +956,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
opts := rest.Opts{ opts := rest.Opts{
Method: "POST", Method: "POST",
Path: "/uploads", Path: "/uploads",
Options: options,
ExtraHeaders: map[string]string{ ExtraHeaders: map[string]string{
"X-Goog-Upload-File-Name": fileName, "X-Goog-Upload-File-Name": fileName,
"X-Goog-Upload-Protocol": "raw", "X-Goog-Upload-Protocol": "raw",