From 8cdce17cab96a742b24835b5616c329357e740db Mon Sep 17 00:00:00 2001 From: Linventif Date: Fri, 29 Mar 2024 15:52:36 +0100 Subject: [PATCH] fix: missing token --- lua/gmod_integration/shared/sh_http.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/gmod_integration/shared/sh_http.lua b/lua/gmod_integration/shared/sh_http.lua index 5bfec86..bd9c870 100644 --- a/lua/gmod_integration/shared/sh_http.lua +++ b/lua/gmod_integration/shared/sh_http.lua @@ -49,7 +49,8 @@ function gmInte.http.requestAPI(params) local requestID = genRequestID() if (token == "") then - return noTokenError() + noTokenError() + return failed(401, "No token provided") end local headers = {