Correctly handle POSTed parameter also with HTTPS activated

pull/42/head
otter 9 years ago
parent f6e6250b83
commit c3c5e7928b

@ -64,6 +64,7 @@ public class PerformanceMemory_p {
prop.put("gc", "1"); prop.put("gc", "1");
prop.put("autoreload.checked", "1"); prop.put("autoreload.checked", "1");
} else { } else {
if (post.containsKey("dummy")) {
boolean simulatedshortmemory = post.containsKey("simulatedshortmemory"); boolean simulatedshortmemory = post.containsKey("simulatedshortmemory");
MemoryControl.setSimulatedShortStatus(simulatedshortmemory); MemoryControl.setSimulatedShortStatus(simulatedshortmemory);
if (simulatedshortmemory) prop.put("autoreload.checked", "1"); if (simulatedshortmemory) prop.put("autoreload.checked", "1");
@ -72,6 +73,7 @@ public class PerformanceMemory_p {
MemoryControl.setStandardStrategy(std); MemoryControl.setStandardStrategy(std);
} }
} }
}
prop.put("simulatedshortmemory.checked", MemoryControl.getSimulatedShortStatus() ? 1 : 0); prop.put("simulatedshortmemory.checked", MemoryControl.getSimulatedShortStatus() ? 1 : 0);
prop.put("useStandardmemoryStrategy.checked", env.getConfigBool("memory.standardStrategy", true) ? 1 : 0); prop.put("useStandardmemoryStrategy.checked", env.getConfigBool("memory.standardStrategy", true) ? 1 : 0);

Loading…
Cancel
Save