From 6dc21a365ca85c848370b0de68519ed63e1f9c95 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Sat, 6 Jul 2019 16:41:47 +0200 Subject: [PATCH] minor fixes --- libdc/src/api.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libdc/src/api.c b/libdc/src/api.c index 724a877..c7e6e1e 100644 --- a/libdc/src/api.c +++ b/libdc/src/api.c @@ -5,7 +5,6 @@ #define DISCORD_URL "https://discordapp.com/api/v6" #define DISCORD_USERAGENT "Mozilla/5.0 (X11; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0" -#define DISCORD_API_AUTH "auth/login" struct dc_api_ { @@ -292,7 +291,7 @@ bool dc_api_authenticate(dc_api_t api, dc_account_t account) json_string(dc_account_password(account)) ); - reply = dc_api_call_sync(api, "POST", NULL, DISCORD_API_AUTH, j); + reply = dc_api_call_sync(api, "POST", NULL, "auth/login", j); goto_if_true(reply == NULL, cleanup); if (dc_api_error(j, NULL, NULL)) {