"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
onedrive: fix spurious "Couldn't decode error response: EOF" DEBUG
Nick Craig-Wood1bc9b94cf203
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.goindex 6aad7d177..7db269c2f 100644--- a/backend/onedrive/onedrive.go+++ b/backend/onedrive/onedrive.go@@ -942,7 +942,8 @@ func errorHandler(resp *http.Response) error {// Decode error responseerrResponse := new(api.Error)err := rest.DecodeJSON(resp, &errResponse)- if err != nil {+ // Redirects have no body so don't report an error+ if err != nil && resp.Header.Get("Location") == "" {fs.Debugf(nil, "Couldn't decode error response: %v", err)}if errResponse.ErrorInfo.Code == "" {