This commit is contained in:
M66B 2020-03-23 19:49:04 +01:00
parent bc811325ab
commit a22bad3843
1 changed files with 2 additions and 1 deletions

View File

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