Browse Source

Merge branch 'fix-crash-on-http-images' into 'develop'

Fix crash happening when trying to fetch images from HTTP connexions

See merge request tom79/fedilab!1035
develop
Thomas 1 month ago
parent
commit
0b08d05397
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/src/main/java/app/fedilab/android/client/HttpsConnection.java

+ 2
- 2
app/src/main/java/app/fedilab/android/client/HttpsConnection.java View File

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


Loading…
Cancel
Save