mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
lib1522: fix curl_easy_setopt argument type
CURLOPT_POSTFIELDSIZE is a long option.
This commit is contained in:
parent
edfaf5a25b
commit
20168b948a
@ -54,7 +54,7 @@ int test(char *URL)
|
||||
curl_easy_setopt(pCurl, CURLOPT_SOCKOPTFUNCTION, sockopt_callback);
|
||||
curl_easy_setopt(pCurl, CURLOPT_URL, URL);
|
||||
curl_easy_setopt(pCurl, CURLOPT_POSTFIELDS, g_Data);
|
||||
curl_easy_setopt(pCurl, CURLOPT_POSTFIELDSIZE, sizeof(g_Data));
|
||||
curl_easy_setopt(pCurl, CURLOPT_POSTFIELDSIZE, (long)sizeof(g_Data));
|
||||
|
||||
/* Remove "Expect: 100-continue" */
|
||||
pHeaderList = curl_slist_append(pHeaderList, "Expect:");
|
||||
|
Loading…
x
Reference in New Issue
Block a user