fix everything
This commit is contained in:
parent
fb2cbccb4a
commit
4d4adf128d
33239
javascript/classes.js
33239
javascript/classes.js
File diff suppressed because it is too large
Load Diff
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
<script type="text/javascript" src="music.js"></script>
|
<script type="text/javascript" src="music.js"></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="classes.js?t=updateme8"></script>
|
<script type="text/javascript" src="classes.js?t=updateme9"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//window.eag_self_proxy=true;//set to true to set the default proxy to the current url
|
//window.eag_self_proxy=true;//set to true to set the default proxy to the current url
|
||||||
//window.eag_proxy_list="";//set to a string of comma-separated proxy ip:port combinations for a custom proxy list
|
//window.eag_proxy_list="";//set to a string of comma-separated proxy ip:port combinations for a custom proxy list
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class WebsocketNetworkManager implements INetworkManager {
|
||||||
http.setFixedLengthStreamingMode(out.length);
|
http.setFixedLengthStreamingMode(out.length);
|
||||||
http.setRequestProperty("Content-Type","application/json; charset=UTF-8");
|
http.setRequestProperty("Content-Type","application/json; charset=UTF-8");
|
||||||
http.setConnectTimeout(5000);
|
http.setConnectTimeout(5000);
|
||||||
|
http.setReadTimeout(5000);
|
||||||
http.connect();
|
http.connect();
|
||||||
http.getOutputStream().write(out);
|
http.getOutputStream().write(out);
|
||||||
Reader in = new BufferedReader(new InputStreamReader(http.getInputStream(), "UTF-8"));
|
Reader in = new BufferedReader(new InputStreamReader(http.getInputStream(), "UTF-8"));
|
||||||
|
|
|
@ -215,6 +215,7 @@ public class GuiScreenEditProfile extends GuiScreen {
|
||||||
URLConnection con = url.openConnection();
|
URLConnection con = url.openConnection();
|
||||||
HttpURLConnection http = (HttpURLConnection) con;
|
HttpURLConnection http = (HttpURLConnection) con;
|
||||||
http.setConnectTimeout(5000);
|
http.setConnectTimeout(5000);
|
||||||
|
http.setReadTimeout(5000);
|
||||||
http.connect();
|
http.connect();
|
||||||
if(http.getResponseCode()!=HttpURLConnection.HTTP_NOT_FOUND){
|
if(http.getResponseCode()!=HttpURLConnection.HTTP_NOT_FOUND){
|
||||||
http.disconnect();
|
http.disconnect();
|
||||||
|
|
|
@ -58,6 +58,7 @@ public class WebsocketNetworkManager implements INetworkManager {
|
||||||
http.setFixedLengthStreamingMode(out.length);
|
http.setFixedLengthStreamingMode(out.length);
|
||||||
http.setRequestProperty("Content-Type","application/json; charset=UTF-8");
|
http.setRequestProperty("Content-Type","application/json; charset=UTF-8");
|
||||||
http.setConnectTimeout(5000);
|
http.setConnectTimeout(5000);
|
||||||
|
http.setReadTimeout(5000);
|
||||||
http.connect();
|
http.connect();
|
||||||
http.getOutputStream().write(out);
|
http.getOutputStream().write(out);
|
||||||
Reader in = new BufferedReader(new InputStreamReader(http.getInputStream(), "UTF-8"));
|
Reader in = new BufferedReader(new InputStreamReader(http.getInputStream(), "UTF-8"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user