if data is NULL for curl... make postfieldsize 0.

SVN revision: 55583
This commit is contained in:
Carsten Haitzler 2010-12-16 08:35:29 +00:00
parent daafe9ee79
commit d19ff43b6e
1 changed files with 2 additions and 0 deletions

View File

@ -860,6 +860,8 @@ ecore_con_url_send(Ecore_Con_Url *url_con,
curl_easy_setopt(url_con->curl_easy, CURLOPT_POSTFIELDS, data);
curl_easy_setopt(url_con->curl_easy, CURLOPT_POSTFIELDSIZE, length);
}
else
curl_easy_setopt(url_con->curl_easy, CURLOPT_POSTFIELDSIZE, 0);
switch (url_con->time_condition)
{