From 9ea136104489aea10bb3d068b2531523655f978b Mon Sep 17 00:00:00 2001 From: Tim Gallant Date: Sat, 21 Mar 2020 14:52:14 -0700 Subject: [PATCH] googlephotos: pass options to rest.Opts for Put and Update --- backend/googlephotos/googlephotos.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/googlephotos/googlephotos.go b/backend/googlephotos/googlephotos.go index 292bb0974..e8bc2b371 100644 --- a/backend/googlephotos/googlephotos.go +++ b/backend/googlephotos/googlephotos.go @@ -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",