"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
googlephotos: don't put an image in error message - fixes #4144
Nick Craig-Wood551a829eba5c
diff --git a/backend/googlephotos/googlephotos.go b/backend/googlephotos/googlephotos.goindex e8bc2b371..6f5abd105 100644--- a/backend/googlephotos/googlephotos.go+++ b/backend/googlephotos/googlephotos.go@@ -235,6 +235,10 @@ func errorHandler(resp *http.Response) error {if err != nil {body = nil}+ // Google sends 404 messages as images so be prepared for that+ if strings.HasPrefix(resp.Header.Get("Content-Type"), "image/") {+ body = []byte("Image not found or broken")+ }var e = api.Error{Details: api.ErrorDetails{Code: resp.StatusCode,