Fix crash happening when trying to fetch images from HTTP connexions

Este commit está contenido en:
Christophe Henry 2021-03-25 19:42:48 +01:00
padre f9d22c3dfa
commit ce41b3cce9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados

Ver fichero

@ -303,9 +303,9 @@ public class HttpsConnection {
URL url = new URL(urlConnection);
if (proxy != null)
httpURLConnection = (HttpsURLConnection) url.openConnection(proxy);
httpURLConnection = (HttpURLConnection) url.openConnection(proxy);
else
httpURLConnection = (HttpsURLConnection) url.openConnection();
httpURLConnection = (HttpURLConnection) url.openConnection();
httpURLConnection.setConnectTimeout(30 * 1000);
httpURLConnection.setRequestProperty("http.keepAlive", "false");
httpURLConnection.setRequestProperty("Content-Type", "application/json");