Revert back on incorrect libcurl fix :-(
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5438 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
6919ba569f
commit
8313b60230
1 changed files with 0 additions and 4 deletions
|
@ -104,11 +104,7 @@ static int curl_exec(struct ast_channel *chan, void *data)
|
|||
|
||||
curl_easy_setopt(curl, CURLOPT_URL, url);
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
|
||||
#ifdef CURLOPT_WRITEDATA
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
|
||||
#else
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEINFO, (void *)&chunk);
|
||||
#endif
|
||||
curl_easy_setopt(curl, CURLOPT_USERAGENT, "asterisk-libcurl-agent/1.0");
|
||||
|
||||
if (post_data) {
|
||||
|
|
Reference in a new issue