mirror of
https://github.com/status-im/react-native-fs.git
synced 2025-03-01 07:20:33 +00:00
Handle 307/308 redirect
This commit is contained in:
parent
e212728104
commit
50eb612e48
@ -67,7 +67,9 @@ public class Downloader extends AsyncTask<DownloadParams, int[], DownloadResult>
|
|||||||
statusCode != HttpURLConnection.HTTP_OK &&
|
statusCode != HttpURLConnection.HTTP_OK &&
|
||||||
(
|
(
|
||||||
statusCode == HttpURLConnection.HTTP_MOVED_PERM ||
|
statusCode == HttpURLConnection.HTTP_MOVED_PERM ||
|
||||||
statusCode == HttpURLConnection.HTTP_MOVED_TEMP
|
statusCode == HttpURLConnection.HTTP_MOVED_TEMP ||
|
||||||
|
statusCode == 307 ||
|
||||||
|
statusCode == 308
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user