Skip to content
Snippets Groups Projects
Commit d0bca8cd authored by Matthew Fredrickson's avatar Matthew Fredrickson
Browse files

Revert back on incorrect libcurl fix :-(

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 3a57d228
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment