mirror of https://github.com/apache/jclouds.git
Do not set hash to null unnecessarily
This avoids test failures seen in CommonSwiftClientLiveTest.testObjectOperations.
This commit is contained in:
parent
4aeaf5f5bd
commit
8bf534cc3a
|
@ -66,7 +66,6 @@ public class BindSwiftObjectMetadataToRequest implements Binder {
|
|||
byte[] contentMD5 = object.getInfo().getHash();
|
||||
if (contentMD5 != null) {
|
||||
// Swizzle hash to ETag
|
||||
object.getInfo().setHash(null);
|
||||
request = (R) request.toBuilder()
|
||||
.addHeader(HttpHeaders.ETAG,
|
||||
BaseEncoding.base16().lowerCase().encode(contentMD5))
|
||||
|
|
Loading…
Reference in New Issue