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
af115a1240
commit
13e55349a3
|
@ -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