Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

http: status string already includes the status code

albertony104534494381
diff --git a/backend/http/http.go b/backend/http/http.go
index 34de6a458..15ea2744c 100644
--- a/backend/http/http.go
+++ b/backend/http/http.go
@@ -129,7 +129,7 @@ func statusError(res *http.Response, err error) error {
}
if res.StatusCode < 200 || res.StatusCode > 299 {
_ = res.Body.Close()
- return fmt.Errorf("HTTP Error %d: %s", res.StatusCode, res.Status)
+ return fmt.Errorf("HTTP Error: %s", res.Status)
}
return nil
}