File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
ds3-sdk/src/main/java/com/spectralogic/ds3client/commands Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff 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 () {
You can’t perform that action at this time.
0 commit comments