From 67602c4cf7318ba558f07c906ae1223ec7065bf1 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 11 Dec 2016 15:02:01 -0500 Subject: dload: s/CURLOPT_WRITEHEADER/CURLOPT_HEADERDATA/ The former is really old, and should be avoided. Signed-off-by: Allan McRae --- lib/libalpm/dload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 79a52553..5c4e1f99 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -267,7 +267,7 @@ static void curl_set_handle_opts(struct dload_payload *payload, curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 1L); curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 10L); curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, dload_parseheader_cb); - curl_easy_setopt(curl, CURLOPT_WRITEHEADER, (void *)payload); + curl_easy_setopt(curl, CURLOPT_HEADERDATA, (void *)payload); curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL); curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L); curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 60L); -- cgit v1.2.3-70-g09d2