forked from External/mage
GUI: added old what's new page (build-in window on startup);
This commit is contained in:
parent
e04306c51f
commit
8f7abe2dc5
12 changed files with 540 additions and 24 deletions
|
|
@ -141,10 +141,13 @@ public class XmageURLConnection {
|
|||
this.connection.setRequestProperty("Accept-Encoding", "gzip");
|
||||
}
|
||||
|
||||
this.connection.setRequestProperty("User-Agent", getDefaultUserAgent());
|
||||
}
|
||||
|
||||
public static String getDefaultUserAgent() {
|
||||
// user agent due standard notation User-Agent: <product> / <product-version> <comment>
|
||||
// warning, dot not add os, language and other details
|
||||
this.connection.setRequestProperty("User-Agent", String.format("XMage/%s build: %s",
|
||||
version.toString(false), version.getBuildTime()));
|
||||
return String.format("XMage/%s build: %s", version.toString(false), version.getBuildTime());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue