From a22bad38437135ba1ebc0cb62fe7beb6ebc0085b Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 23 Mar 2020 19:49:04 +0100 Subject: [PATCH] Debug --- app/src/main/java/eu/faircode/email/ImageHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();