mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
add verify_ssl parameter
This commit is contained in:
parent
afc8ff2a0f
commit
762634ea04
1 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue