Skip to content

Commit ed3b113

Browse files
authored
Update RNFetchBlobReq.java
Fixes the issue described here in relation to uploading to S3 wkh237#425
1 parent 1fb974f commit ed3b113

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ else if (value.equalsIgnoreCase("utf8"))
246246
requestType = RequestType.Form;
247247
}
248248
else if(cType.isEmpty()) {
249-
builder.header("Content-Type", "application/octet-stream");
249+
if(!cType.equalsIgnoreCase("")) {
250+
builder.header("Content-Type", "application/octet-stream");
251+
}
250252
requestType = RequestType.SingleFile;
251253
}
252254
if(rawRequestBody != null) {

0 commit comments

Comments
 (0)