Do not set hash to null unnecessarily

This avoids test failures seen in
CommonSwiftClientLiveTest.testObjectOperations.
This commit is contained in:
Andrew Gaul 2013-10-13 19:24:40 -07:00
parent af115a1240
commit 13e55349a3
1 changed files with 0 additions and 1 deletions

View File

@ -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))