> @@ -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);
Not sure if a comment here got lost - apologies if you've already addressed
this: is the `null` setting here required and, if so, should we have a test for
that?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/41/files#r4855179