From a17b03b3a355f7a102dc1067479e31baa9b8598d Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 4 May 2016 23:21:40 +0200 Subject: [PATCH] Removed basepath setting from API handler. --- src/controller/controller_api.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/controller/controller_api.cpp b/src/controller/controller_api.cpp index 5869af16..3c98e543 100644 --- a/src/controller/controller_api.cpp +++ b/src/controller/controller_api.cpp @@ -62,9 +62,6 @@ /// ~~~~~~~~~~~~~~~ void Controller::checkConfig(JSON::Value & in, JSON::Value & out){ out = in; - if (out["basepath"].asString()[out["basepath"].asString().size() - 1] == '/'){ - out["basepath"] = out["basepath"].asString().substr(0, out["basepath"].asString().size() - 1); - } if (out.isMember("debug")){ if (Util::Config::printDebugLevel != out["debug"].asInt()){ Util::Config::printDebugLevel = out["debug"].asInt();