rclone/backend/googlecloudstorage
Nick Craig-Wood 2781f8e2f1 gcs: Fix download of "Content-Encoding: gzip" compressed objects
Before this change, if an object compressed with "Content-Encoding:
gzip" was downloaded, a length and hash mismatch would occur since the
as the go runtime automatically decompressed the object on download.

This change erases the length and hash on compressed objects so they
can be downloaded successfully, at the cost of not being able to check
the length or the hash of the downloaded object.

This also adds the --gcs-download-compressed flag to allow the
compressed files to be downloaded as-is providing compressed objects
with intact size and hash information.

Fixes #2658
2022-05-31 12:10:21 +01:00
..
googlecloudstorage_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
googlecloudstorage.go gcs: Fix download of "Content-Encoding: gzip" compressed objects 2022-05-31 12:10:21 +01:00