Open Crash-- opened 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.
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.