From 277a35d8fd337ea3b372bd506848fbd98dc01d6a Mon Sep 17 00:00:00 2001 From: Nicolas Werner <nicolas.werner@hotmail.de> Date: Sat, 9 May 2020 23:59:35 +0200 Subject: [PATCH] Misc sso fixes --- lib/http/client.cpp | 2 +- tests/client_api.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/http/client.cpp b/lib/http/client.cpp index ba2939e83..deaed1c4e 100644 --- a/lib/http/client.cpp +++ b/lib/http/client.cpp @@ -357,7 +357,7 @@ Client::well_known(Callback<mtx::responses::WellKnown> callback) } func; func.numRedirects = 0; func.callback = std::move(callback); - func.client = this; + func.client = this; get<mtx::responses::WellKnown>("/matrix/client", std::move(func), false, "/.well-known"); } diff --git a/tests/client_api.cpp b/tests/client_api.cpp index 14d768be7..71284edb2 100644 --- a/tests/client_api.cpp +++ b/tests/client_api.cpp @@ -132,6 +132,7 @@ TEST(ClientAPI, SSORedirect) EXPECT_EQ(mtx_client->login_sso_redirect("http://aaa:555/sso"), "https://localhost:443/_matrix/client/r0/login/sso/" "redirect?redirectUrl=http%3A%2F%2Faaa%3A555%2Fsso"); + mtx_client->close(); } TEST(ClientAPI, EmptyUserAvatar) -- GitLab