Fix incorrect URL check in the InfoHandler class

refs #9105
This commit is contained in:
Gunnar Beutner 2015-10-28 07:21:18 +01:00
parent 1223007377
commit 4763dea571
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ bool InfoHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
return true;
}
if (request.RequestUrl->GetPath()[0] != "v1")
if (request.RequestUrl->GetPath()[0] != "v1" || request.RequestUrl->GetPath().size() != 1)
return false;
response.SetStatus(200, "OK");