From e6c7c2f3d683a5c15e2be15563e2f52d8aed91ed Mon Sep 17 00:00:00 2001 From: turret Date: Thu, 18 Jan 2024 18:52:27 -0600 Subject: api: extensify api api --- net/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/net.c') diff --git a/net/net.c b/net/net.c index 94aa067..b8938c0 100644 --- a/net/net.c +++ b/net/net.c @@ -11,11 +11,11 @@ #include #include +#include #include #include #include -extern int http_get(char *url); extern void ws_handle_event(cJSON *event); extern void ws_send_heartbeat(); CURL *ws_handle; @@ -149,7 +149,7 @@ void net_get_gateway_url() panic("net: wss not supported by libcurl"); /* fetch preferred url from discord */ - int fd = http_get("https://discord.com/api/gateway/bot"); + int fd = api_get("/gateway/bot", NULL, NULL, 0); if(fd < 0) { print(LOG_ERR "net: cannot get gateway url: %s", curl_easy_strerror(-fd)); goto assume; -- cgit v1.2.3