mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
CLuaInstCurl: Fix CurlDownload() to send POST data
- Set Lua api version to 1.77
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
* to luainstance.h changes
|
||||
*/
|
||||
#define LUA_API_VERSION_MAJOR 1
|
||||
#define LUA_API_VERSION_MINOR 76
|
||||
#define LUA_API_VERSION_MINOR 77
|
||||
|
@@ -271,8 +271,10 @@ Example:
|
||||
if (!userAgent.empty())
|
||||
curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, userAgent.c_str());
|
||||
|
||||
if (!postfields.empty())
|
||||
if (!postfields.empty()) {
|
||||
curl_easy_setopt(curl_handle, CURLOPT_POSTFIELDSIZE, static_cast<long>(postfields.length()));
|
||||
curl_easy_setopt(curl_handle, CURLOPT_POSTFIELDS, postfields.c_str());
|
||||
}
|
||||
|
||||
if (ipv4 && ipv6)
|
||||
curl_easy_setopt(curl_handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_WHATEVER);
|
||||
|
Reference in New Issue
Block a user