File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
android/src/main/java/com/RNFetchBlob Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -148,13 +148,12 @@ public void run() {
148148 if (options .addAndroidDownloads .hasKey ("path" )) {
149149 req .setDestinationUri (Uri .parse ("file://" + options .addAndroidDownloads .getString ("path" )));
150150 }
151- // set headers
152- ReadableMapKeySetIterator it = headers .keySetIterator ();
153151 // #391 Add MIME type to the request
154152 if (options .addAndroidDownloads .hasKey ("mime" )) {
155153 req .setMimeType (options .addAndroidDownloads .getString ("mime" ));
156154 }
157-
155+ // set headers
156+ ReadableMapKeySetIterator it = headers .keySetIterator ();
158157 if (options .addAndroidDownloads .hasKey ("mediaScannable" ) && options .addAndroidDownloads .hasKey ("mediaScannable" ) == true ) {
159158 req .allowScanningByMediaScanner ();
160159 }
You can’t perform that action at this time.
0 commit comments