Don't hardcode keepmealive url

This commit is contained in:
Laurent Clouet
2016-01-14 14:47:37 +01:00
parent d1a03fa4a8
commit 9969247cfe

View File

@@ -124,7 +124,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
} }
} }
HttpURLConnection connection = this.HTTPRequest(this.base_url + "/server/keepmealive.php" + args); HttpURLConnection connection = this.HTTPRequest(this.base_url + this.getPage("keepmealive") + args);
if (connection.getResponseCode() == HttpURLConnection.HTTP_OK && connection.getContentType().startsWith("text/xml")) { if (connection.getResponseCode() == HttpURLConnection.HTTP_OK && connection.getContentType().startsWith("text/xml")) {
DataInputStream in = new DataInputStream(connection.getInputStream()); DataInputStream in = new DataInputStream(connection.getInputStream());