commit | e2f7c74c508d0e4a3f5005530b7dcd27ac782131 | [log] [tgz] |
---|---|---|
author | Craig Citro <craigcitro@google.com> | Tue Mar 10 14:55:59 2015 -0700 |
committer | Craig Citro <craigcitro@google.com> | Tue Mar 10 14:55:59 2015 -0700 |
tree | 3e14824752d7d9affdb7fe2ea24e58c0e93c144e | |
parent | 79f3c87d332e55fc3eb056b4f641076848149615 [diff] |
Pull stream buffers into string objects to work around httplib2 issue. This works around https://code.google.com/p/httplib2/issues/detail?id=176 which can cause data corruption in a stream. This would eventually result in a mismatching hash on the final object or a 410 from the service when a non-idempotent write was issued. (Patch originally by thobrla, see https://github.com/GoogleCloudPlatform/gsutil/commit/af195c87e19570831c4d9197810e8be0be2d85aa)