Turn POST request into a GET request.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 25 Oct 2010 16:29:40 +0000 (18:29 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 25 Oct 2010 16:29:40 +0000 (18:29 +0200)
src/main/java/net/pterodactylus/sone/web/OptionsPage.java

index e81bc4e..0f9051d 100644 (file)
@@ -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());