forked from enlightenment/efl
From: Bluezery <ohpowel@gmail.com>
Subject: [E-devel] [ecore_con] Bug fix when data is NULL. If data is NULL, curl makes length field as -1 . length filed should be set by 0. SVN revision: 65006
This commit is contained in:
parent
1b00894c58
commit
216ea5012c
|
@ -695,11 +695,10 @@ _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 if (mode == MODE_POST)
|
||||
{
|
||||
else curl_easy_setopt(url_con->curl_easy, CURLOPT_POSTFIELDSIZE, 0);
|
||||
if (mode == MODE_POST)
|
||||
curl_easy_setopt(url_con->curl_easy, CURLOPT_POST, 1);
|
||||
}
|
||||
}
|
||||
|
||||
switch (url_con->time_condition)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue