scottwernervt / cloudstorage

Unified cloud storage API for storage services.
http://cloudstorage.readthedocs.io/en/latest/
MIT License
93 stars 27 forks source link

Skip md5 validation if the remote blob didn't send a checksum #46

Closed matt-carr closed 5 years ago

matt-carr commented 5 years ago

If a blob was uploaded through other means without a Content-MD5 header, azure will not populate that header automatically, and it will not be returned when the blob is downloaded. This change skips the checksum validation if the header is missing (avoiding the resultant TypeError) and logs an appropriate warning

Fixes #47