diff --git a/app/src/main/java/eu/faircode/email/ImageHelper.java b/app/src/main/java/eu/faircode/email/ImageHelper.java index 5c43e7a4a1..7fb8547e5e 100644 --- a/app/src/main/java/eu/faircode/email/ImageHelper.java +++ b/app/src/main/java/eu/faircode/email/ImageHelper.java @@ -532,7 +532,8 @@ class ImageHelper { urlConnection.setReadTimeout(DOWNLOAD_TIMEOUT); urlConnection.setConnectTimeout(DOWNLOAD_TIMEOUT); urlConnection.setInstanceFollowRedirects(true); - urlConnection.setRequestProperty("User-Agent", ua); + if (BuildConfig.DEBUG) + urlConnection.setRequestProperty("User-Agent", ua); urlConnection.connect(); int status = urlConnection.getResponseCode();