From: David ‘Bombe’ Roden Date: Mon, 25 Oct 2010 16:29:40 +0000 (+0200) Subject: Turn POST request into a GET request. X-Git-Tag: 0.1-RC1~28 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=31e30cfca6caf4288d265486dcee86b6dce4ac96;p=Sone.git Turn POST request into a GET request. --- diff --git a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java index e81bc4e..0f9051d 100644 --- a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java +++ b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java @@ -59,6 +59,7 @@ public class OptionsPage extends SoneTemplatePage { options.getBooleanOption("ClearOnNextRestart").set(clearOnNextRestart); boolean reallyClearOnNextRestart = Boolean.parseBoolean(request.getHttpRequest().getPartAsStringFailsafe("really-clear-on-next-restart", 5)); options.getBooleanOption("ReallyClearOnNextRestart").set(reallyClearOnNextRestart); + throw new RedirectException(getPath()); } template.set("insertion-delay", options.getIntegerOption("InsertionDelay").get()); template.set("clear-on-next-restart", options.getBooleanOption("ClearOnNextRestart").get());