mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2024-12-02 13:23:21 +01:00
Fixed autoupdate errpr
This commit is contained in:
parent
31a97daf74
commit
21b30d489a
@ -34,6 +34,7 @@ public class UpdateInformations {
|
|||||||
try {
|
try {
|
||||||
URL url = new URL(URL);
|
URL url = new URL(URL);
|
||||||
urlConn = url.openConnection();
|
urlConn = url.openConnection();
|
||||||
|
urlConn.setRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2");
|
||||||
|
|
||||||
if (urlConn != null)
|
if (urlConn != null)
|
||||||
urlConn.setReadTimeout(60 * 1000);
|
urlConn.setReadTimeout(60 * 1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user