Skip to content
Snippets Groups Projects
Commit 2a6e7372 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #240 - server shutdown route shouldn't be delete request

parent eac110ee
No related branches found
No related tags found
No related merge requests found
......@@ -621,7 +621,7 @@ public class ServerConnection
{
URL url = new URL(settings.getUrl() + "/shutdown?secret=" + Helpers.getURLEncodedString(settings.getSecret()));
HttpsURLConnection httpsCon = (HttpsURLConnection)url.openConnection();
httpsCon.setRequestMethod("DELETE");
httpsCon.setRequestMethod("GET");
httpsCon.setDoInput(true);
if(httpsCon.getResponseCode() == HttpsURLConnection.HTTP_OK)
{
......
......@@ -199,7 +199,7 @@ public class SparkServer
get("/info", new InformationGet(gson, versionInfo, settings));
get("/version", new VersionGet(gson, versionInfo));
delete("/log", new LogDelete());
delete("/shutdown", new Shutdown());
get("/shutdown", new Shutdown());
}
catch(ClassNotFoundException e)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment