Skip to content

Commit 7acca47

Browse files
committed
Merging master to update branch
2 parents bc58681 + bf1711c commit 7acca47

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/PutObjectRequest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,20 +161,20 @@ public ChecksumType.Type getChecksumType() {
161161
}
162162

163163

164-
public PutObjectRequest withMetaData(final String key, final String value) {
164+
public PutObjectRequest withMetaData(final String key, final String value) {
165165
if (isStringNullOrEmpty(value)) {
166166
LOG.warn("Key has not been added to metadata because value was null or empty: " + key);
167167
return this;
168168
}
169-
final String modifiedKey;
170-
if (!key.toLowerCase().startsWith(AMZ_META_HEADER)){
171-
modifiedKey = AMZ_META_HEADER + key;
172-
} else {
173-
modifiedKey = key;
174-
}
175-
this.getHeaders().put(modifiedKey, value);
176-
return this;
177-
}
169+
final String modifiedKey;
170+
if (!key.toLowerCase().startsWith(AMZ_META_HEADER)){
171+
modifiedKey = AMZ_META_HEADER + key;
172+
} else {
173+
modifiedKey = key;
174+
}
175+
this.getHeaders().put(modifiedKey, value);
176+
return this;
177+
}
178178

179179
@Override
180180
public HttpVerb getVerb() {

0 commit comments

Comments
 (0)