Skip to content

Commit

Permalink
fix(client): Fix HttpClient request arg check
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Mar 18, 2024
1 parent c064a10 commit a66b2be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/classes/HttpClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ template<auto Method, bool HasBody, bool HasProgressCallback = false>
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<alt::IHttpClient>();

std::string url;
Expand Down

0 comments on commit a66b2be

Please sign in to comment.