diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-08-22 19:38:36 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-08-22 19:38:36 +0200 |
commit | 772c9629ebbffc2751c9048f0708bd009a8bd3ca (patch) | |
tree | 04fc546135c3ff2a2ba27fd687079f9ae6958e5c /src/script/lua_api/l_http.cpp | |
parent | 9b1030cac4409b262dca73d2f0741fe78d4998ee (diff) | |
download | dragonfireclient-772c9629ebbffc2751c9048f0708bd009a8bd3ca.tar.xz |
Unrestricted HTTP API for Client, Server and Main Menu
Diffstat (limited to 'src/script/lua_api/l_http.cpp')
-rw-r--r-- | src/script/lua_api/l_http.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/script/lua_api/l_http.cpp b/src/script/lua_api/l_http.cpp index ec43bf174..84837e71b 100644 --- a/src/script/lua_api/l_http.cpp +++ b/src/script/lua_api/l_http.cpp @@ -216,18 +216,7 @@ int ModApiHttp::l_get_http_api(lua_State *L) void ModApiHttp::Initialize(lua_State *L, int top) { #if USE_CURL - - bool isMainmenu = false; -#ifndef SERVER - isMainmenu = ModApiBase::getGuiEngine(L) != nullptr; -#endif - - if (isMainmenu) { - API_FCT(get_http_api); - } else { - API_FCT(request_http_api); - } - + API_FCT(get_http_api); #endif } |