|
@@ -213,6 +213,11 @@ public class RNFetchBlobReq extends BroadcastReceiver implements Runnable {
|
213
|
213
|
requestType = RequestType.SingleFile;
|
214
|
214
|
}
|
215
|
215
|
else if (cType.toLowerCase().contains(";base64") || cType.toLowerCase().startsWith("application/octet")) {
|
|
216
|
+ cType = cType.replace(";base64","").replace(";BASE64","");
|
|
217
|
+ if(mheaders.containsKey("content-type"))
|
|
218
|
+ mheaders.put("content-type", cType);
|
|
219
|
+ if(mheaders.containsKey("Content-Type"))
|
|
220
|
+ mheaders.put("Content-Type", cType);
|
216
|
221
|
requestType = RequestType.SingleFile;
|
217
|
222
|
} else {
|
218
|
223
|
requestType = RequestType.AsIs;
|