mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
download: reworked connection:
- added shareable code with default proxy, headers and other settings for download tasks like images, symbols, mtgjson, etc; - use XmageURLConnection.downloadText for text resources - use XmageURLConnection.downloadBinary for any file resources - added user agent with app version for all requests; - added http logs and improved error messages;
This commit is contained in:
parent
fad63389d0
commit
e1cffbde40
35 changed files with 713 additions and 464 deletions
|
|
@ -91,4 +91,8 @@ public class MageVersion implements Serializable, Comparable<MageVersion> {
|
|||
public boolean isDeveloperBuild() {
|
||||
return this.buildTime.contains(JarVersion.JAR_BUILD_TIME_FROM_CLASSES);
|
||||
}
|
||||
|
||||
public String getBuildTime() {
|
||||
return this.buildTime;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue