From a66b2be2af937b06e762d927a824e7a9fbaf694f Mon Sep 17 00:00:00 2001 From: xLuxy <67131061+xLuxy@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:23:00 +0100 Subject: [PATCH] fix(client): Fix HttpClient request arg check --- client/src/classes/HttpClient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/classes/HttpClient.cpp b/client/src/classes/HttpClient.cpp index d1083e6e4..d1d2dcdbe 100644 --- a/client/src/classes/HttpClient.cpp +++ b/client/src/classes/HttpClient.cpp @@ -22,7 +22,8 @@ template static void GenericRequest(js::FunctionContext& ctx) { if(!ctx.CheckThis()) return; - if(!ctx.CheckArgCount(1)) return; + if(!ctx.CheckArgCount(1, 2)) return; + alt::IHttpClient* client = ctx.GetThisObject(); std::string url;