Fix crash happening when trying to fetch images from HTTP connexions

Cette révision appartient à :
Christophe Henry 2021-03-25 19:42:48 +01:00
Parent f9d22c3dfa
révision ce41b3cce9
1 fichiers modifiés avec 2 ajouts et 2 suppressions

Voir le fichier

@ -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");