mirror of https://github.com/Icinga/icinga2.git
Fix crash in remote api console
This commit is contained in:
parent
d5ddc877dd
commit
69ea2f3a64
|
@ -71,7 +71,7 @@ static void EnsureFrameCleanupTimer()
|
|||
|
||||
bool ConsoleHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response, const Dictionary::Ptr& params)
|
||||
{
|
||||
if (request.RequestUrl->GetPath().size() > 3)
|
||||
if (request.RequestUrl->GetPath().size() != 3)
|
||||
return false;
|
||||
|
||||
if (request.RequestMethod != "POST")
|
||||
|
|
Loading…
Reference in New Issue