We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb0bfa4 + c31cb90 commit 981627eCopy full SHA for 981627e
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java
@@ -266,7 +266,9 @@ else if (value.equalsIgnoreCase("utf8"))
266
requestType = RequestType.Form;
267
}
268
else if(cType.isEmpty()) {
269
- builder.header("Content-Type", "application/octet-stream");
+ if(!cType.equalsIgnoreCase("")) {
270
+ builder.header("Content-Type", "application/octet-stream");
271
+ }
272
requestType = RequestType.SingleFile;
273
274
if(rawRequestBody != null) {
0 commit comments