pull/177/head
M66B 5 years ago
parent bc811325ab
commit a22bad3843

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

Loading…
Cancel
Save