Allow space in-between checksums in response headers #169
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Summary: I encountered this bug when downloading files using the Google Cloud Storage Python libraries, but the bug is coming from the Resumable Media library. The current code (and official docs) assumes the checksum headers will be contiguous without whitespace:
However, I'm actually getting responses with whitespaces between each type of checksum:
Because of this, the checksum of downloaded files aren't being verified.
Solution is to patch
_helpers.py
as follows:Relevant: #22, #31, #32
The text was updated successfully, but these errors were encountered: