Skip to content

Commit 677434d

Browse files
authored
Merge pull request itinance#244 from kevinresol/patch-1
Handle 307/308 redirect
2 parents ca540cb + 50eb612 commit 677434d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/src/main/java/com/rnfs/Downloader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ private void download(DownloadParams param, DownloadResult res) throws Exception
6767
statusCode != HttpURLConnection.HTTP_OK &&
6868
(
6969
statusCode == HttpURLConnection.HTTP_MOVED_PERM ||
70-
statusCode == HttpURLConnection.HTTP_MOVED_TEMP
70+
statusCode == HttpURLConnection.HTTP_MOVED_TEMP ||
71+
statusCode == 307 ||
72+
statusCode == 308
7173
)
7274
);
7375

0 commit comments

Comments
 (0)