From 57721aafef019af279fc14c273cda83fe81a27c6 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 7 Oct 2024 20:24:49 +0200 Subject: [PATCH] lua_curl: sync with tangocash Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/3b94c1740e6fbe4057aaeee27b848d519662da61 Author: vanhofen Date: 2024-10-07 (Mon, 07 Oct 2024) Origin message was: ------------------ - lua_curl: sync with tangocash ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/lua/lua_curl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/lua/lua_curl.cpp b/src/gui/lua/lua_curl.cpp index 40facd5a2..23161a8d2 100644 --- a/src/gui/lua/lua_curl.cpp +++ b/src/gui/lua/lua_curl.cpp @@ -145,6 +145,7 @@ int CLuaInstCurl::CurlDownload(lua_State *L) as secund return value A, userAgent string empty P, postfields string empty + data, post-data string empty v, verbose bool false s, silent bool false h, header bool false @@ -230,7 +231,8 @@ Example: tableLookup(L, "A", userAgent) || tableLookup(L, "userAgent", userAgent); std::string postfields = "";//specify data to POST to server - tableLookup(L, "P", postfields) || tableLookup(L, "postfields", postfields); + tableLookup(L, "P", postfields) || tableLookup(L, "postfields", postfields) || + tableLookup(L, "data", postfields) || tableLookup(L, "post-data", postfields); bool verbose = false; tableLookup(L, "v", verbose) || tableLookup(L, "verbose", verbose);