From d0bca8cd77c525bbc70ebbfb1b246d3af25442ac Mon Sep 17 00:00:00 2001
From: Matthew Fredrickson <creslin@digium.com>
Date: Thu, 7 Apr 2005 22:20:07 +0000
Subject: [PATCH] Revert back on incorrect libcurl fix :-(

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_curl.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/apps/app_curl.c b/apps/app_curl.c
index 06d387c54f..558117d088 100755
--- a/apps/app_curl.c
+++ b/apps/app_curl.c
@@ -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) {
-- 
GitLab