mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
CLuaInstCurl: Fix CurlDownload() to send POST data
- Set Lua api version to 1.77
Origin commit data
------------------
Branch: ni/coolstream
Commit: 100fa78952
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-10-23 (Mon, 23 Oct 2017)
------------------
This commit was generated by Migit
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