Fix crash happening when trying to fetch images from HTTP connexions
Этот коммит содержится в:
родитель
f9d22c3dfa
Коммит
ce41b3cce9
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче