From d660960775fe2c3b16fc916bf3377906f31e4a74 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 29 Jan 2026 11:55:46 +0000 Subject: [PATCH] onedrive: fix cancelling multipart upload Before this change it was giving back "401 Unauthorized" however removing the "Authorization: XXXX" from the request fixes the problem as the auth is in the URL already. --- backend/onedrive/onedrive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go index b9fe4509f..c0662f5bd 100644 --- a/backend/onedrive/onedrive.go +++ b/backend/onedrive/onedrive.go @@ -2554,7 +2554,7 @@ func (o *Object) cancelUploadSession(ctx context.Context, url string) (err error } var resp *http.Response err = o.fs.pacer.Call(func() (bool, error) { - resp, err = o.fs.srv.Call(ctx, &opts) + resp, err = o.fs.unAuth.Call(ctx, &opts) return shouldRetry(ctx, resp, err) }) return