itinance / react-native-fs

Native filesystem access for react-native
MIT License
4.9k stars 958 forks source link

feat(Android): Handle 303 redirection #1153

Open Crash-- opened 1 year ago

Crash-- commented 1 year ago

Since HttpURLConnection doesn't allow the redirection between http and https (https://developer.android.com/reference/java/net/HttpURLConnection.html#response-handling) we need to handle the redirection manually by getting the location, closing the current connexion and create a new one.

We do that for almost all the 3xx response, but not for the 303. So, let's add it.