File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
core/src/main/java/software/amazon/awssdk/core/protocol/json/internal Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import static software .amazon .awssdk .http .Headers .CONTENT_LENGTH ;
19
19
import static software .amazon .awssdk .http .Headers .CONTENT_TYPE ;
20
- import static software .amazon .awssdk .utils .StringUtils .isNotBlank ;
21
20
22
21
import java .io .ByteArrayInputStream ;
23
22
import java .io .InputStream ;
24
23
import java .nio .ByteBuffer ;
25
-
26
24
import software .amazon .awssdk .annotations .SdkInternalApi ;
27
25
import software .amazon .awssdk .core .DefaultRequest ;
28
26
import software .amazon .awssdk .core .Request ;
@@ -187,7 +185,7 @@ public Request<OrigRequestT> finishMarshalling() {
187
185
request .addHeader (CONTENT_LENGTH , Integer .toString (content .length ));
188
186
}
189
187
}
190
- if (!request .getHeaders ().containsKey (CONTENT_TYPE ) && isNotBlank ( contentType ) ) {
188
+ if (!request .getHeaders ().containsKey (CONTENT_TYPE ) && contentType != null ) {
191
189
request .addHeader (CONTENT_TYPE , contentType );
192
190
}
193
191
return request ;
You can’t perform that action at this time.
0 commit comments