master
Matthew 10 months ago
parent 10fd2beae3
commit 1499de2beb

@ -272,8 +272,6 @@ public class AppMaster {
httpURLConnection.setConnectTimeout(15000); httpURLConnection.setConnectTimeout(15000);
httpURLConnection.setReadTimeout(15000); httpURLConnection.setReadTimeout(15000);
httpURLConnection.setRequestProperty("Content-Type", "application/json");
try { try {
httpURLConnection.setRequestMethod("POST"); httpURLConnection.setRequestMethod("POST");
} catch (Exception ex) { } catch (Exception ex) {
@ -283,6 +281,7 @@ public class AppMaster {
httpURLConnection.setDoInput(true); httpURLConnection.setDoInput(true);
httpURLConnection.setDoOutput(true); httpURLConnection.setDoOutput(true);
httpURLConnection.setRequestProperty("Content-Type", "application/json");
httpURLConnection.setRequestProperty("Accept-Cmds", "Multiple"); httpURLConnection.setRequestProperty("Accept-Cmds", "Multiple");
final boolean shouldSyncTime = mService.shouldSyncTime(); final boolean shouldSyncTime = mService.shouldSyncTime();
final long requestSyncTime = System.currentTimeMillis(); final long requestSyncTime = System.currentTimeMillis();

Loading…
Cancel
Save