From 762634ea0494c3b8b0a9b8137f22215c7b7aeb69 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 14 Sep 2026 19:44:41 +0300 Subject: [PATCH] add verify_ssl parameter --- src/logic/scripting/lua/libs/libnetwork.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/logic/scripting/lua/libs/libnetwork.cpp b/src/logic/scripting/lua/libs/libnetwork.cpp index 2ccf25546..fbd722b1d 100644 --- a/src/logic/scripting/lua/libs/libnetwork.cpp +++ b/src/logic/scripting/lua/libs/libnetwork.cpp @@ -113,6 +113,10 @@ static int l_request(lua::State* L, network::Network& network) { request.timeoutMs = lua::tointeger(L, -1); lua::pop(L); } + if (lua::getfield(L, "verify_ssl", 2)) { + request.verifySSL = lua::toboolean(L, -1); + lua::pop(L); + } int currentRequestId = request_id++; request.onResponse = [currentRequestId](network::HttpResponse response) {