mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fix images download from magiccards.info
This commit is contained in:
parent
9221e4eb64
commit
d139cd591c
1 changed files with 2 additions and 0 deletions
|
@ -571,6 +571,8 @@ public class DownloadPictures extends DefaultBoundedRangeModel implements Runnab
|
|||
|
||||
// Logger.getLogger(this.getClass()).info(url.toString());
|
||||
URLConnection httpConn = url.openConnection(p);
|
||||
// images download from magiccards.info may not work with default 'User-Agent: Java/1.x.x' request header
|
||||
httpConn.setRequestProperty("User-Agent", "");
|
||||
httpConn.connect();
|
||||
int responseCode = ((HttpURLConnection) httpConn).getResponseCode();
|
||||
if (responseCode == 200) {
|
||||
|
|
Loading…
Reference in a new issue