Skip to content

Commit

Permalink
Update RNFetchBlobReq.java
Browse files Browse the repository at this point in the history
Fixes the issue described here in relation to uploading to S3 wkh237#425
  • Loading branch information
cipriancaba authored Aug 21, 2018
1 parent 1fb974f commit ed3b113
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ else if (value.equalsIgnoreCase("utf8"))
requestType = RequestType.Form;
}
else if(cType.isEmpty()) {
builder.header("Content-Type", "application/octet-stream");
if(!cType.equalsIgnoreCase("")) {
builder.header("Content-Type", "application/octet-stream");
}
requestType = RequestType.SingleFile;
}
if(rawRequestBody != null) {
Expand Down

0 comments on commit ed3b113

Please sign in to comment.