forked from lda/telodendria
Fix /_matrix/client/versions and remove logging in RouteLogin
This commit is contained in:
parent
8acc21db7c
commit
152d444e32
2 changed files with 1 additions and 5 deletions
|
@ -25,7 +25,6 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include <Memory.h>
|
||||
#include <Json.h>
|
||||
#include <HashMap.h>
|
||||
|
||||
|
@ -35,8 +34,6 @@ ROUTE_IMPL(RouteLogin, args)
|
|||
Array *enabledFlows;
|
||||
HashMap *pwdFlow;
|
||||
|
||||
Log(args->matrixArgs->lc, LOG_INFO, "Entered RouteLogin()");
|
||||
|
||||
if (MATRIX_PATH_PARTS(args->path) > 0)
|
||||
{
|
||||
HttpResponseStatus(args->context, HTTP_NOT_FOUND);
|
||||
|
@ -64,6 +61,5 @@ ROUTE_IMPL(RouteLogin, args)
|
|||
break;
|
||||
}
|
||||
|
||||
Log(args->matrixArgs->lc, LOG_INFO, "Exitting RouteLogin()");
|
||||
return response;
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ ROUTE_IMPL(RouteMatrix, args)
|
|||
HashMap *response = NULL;
|
||||
char *pathPart = MATRIX_PATH_POP(args->path);
|
||||
|
||||
if (!MATRIX_PATH_EQUALS(pathPart, "client") || MATRIX_PATH_PARTS(args->path) <= 1)
|
||||
if (!MATRIX_PATH_EQUALS(pathPart, "client") || MATRIX_PATH_PARTS(args->path) < 1)
|
||||
{
|
||||
Free(pathPart);
|
||||
HttpResponseStatus(args->context, HTTP_NOT_FOUND);
|
||||
|
|
Loading…
Reference in a new issue