Handle 307/308 redirect

This commit is contained in:
Kevin Leung 2017-01-27 16:03:34 +08:00 committed by GitHub
parent e212728104
commit 50eb612e48

View File

@ -67,7 +67,9 @@ public class Downloader extends AsyncTask<DownloadParams, int[], DownloadResult>
statusCode != HttpURLConnection.HTTP_OK &&
(
statusCode == HttpURLConnection.HTTP_MOVED_PERM ||
statusCode == HttpURLConnection.HTTP_MOVED_TEMP
statusCode == HttpURLConnection.HTTP_MOVED_TEMP ||
statusCode == 307 ||
statusCode == 308
)
);