summaryrefslogtreecommitdiffstats
path: root/http-walker.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-07-30 19:59:46 +0200
committerJunio C Hamano <gitster@pobox.com>2021-07-31 01:01:54 +0200
commit8dda4cbdf258be05e7201ef5d6e9d532cacb9178 (patch)
treea0f89bd4cb7579e9aadd216d82311a53756d65ec /http-walker.c
parenthttp: drop support for curl < 7.19.3 and < 7.17.0 (again) (diff)
downloadgit-8dda4cbdf258be05e7201ef5d6e9d532cacb9178.tar.xz
git-8dda4cbdf258be05e7201ef5d6e9d532cacb9178.zip
http: rename CURLOPT_FILE to CURLOPT_WRITEDATA
The CURLOPT_FILE name is an alias for CURLOPT_WRITEDATA, the CURLOPT_WRITEDATA name has been preferred since curl 7.9.7, released in May 2002[1]. 1. https://curl.se/libcurl/c/CURLOPT_WRITEDATA.html Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-walker.c')
-rw-r--r--http-walker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-walker.c b/http-walker.c
index 19e31623f0..910fae539b 100644
--- a/http-walker.c
+++ b/http-walker.c
@@ -378,7 +378,7 @@ static void fetch_alternates(struct walker *walker, const char *base)
alt_req.walker = walker;
slot->callback_data = &alt_req;
- curl_easy_setopt(slot->curl, CURLOPT_FILE, &buffer);
+ curl_easy_setopt(slot->curl, CURLOPT_WRITEDATA, &buffer);
curl_easy_setopt(slot->curl, CURLOPT_WRITEFUNCTION, fwrite_buffer);
curl_easy_setopt(slot->curl, CURLOPT_URL, url.buf);