You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Andrew Gaul <no...@github.com> on 2013/09/10 09:03:19 UTC
Re: [jclouds] Add Atmos-specific MD5 checksum header (#41)
> @@ -47,6 +50,15 @@ protected BindMetadataToHeaders(BindUserMetadataToHeaders metaBinder) {
> checkNotNull(object.getPayload(), "object payload");
> checkArgument(object.getPayload().getContentMetadata().getContentLength() != null,
> "contentLength must be set, streaming not supported");
> + byte[] contentMD5 = object.getContentMetadata().getContentMD5();
> + if (contentMD5 != null) {
> + // Swizzle Content-MD5 to Atmos-specific header
> + object.getContentMetadata().setContentMD5(null);
Setting null not required and removed.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/41/files#r6258647