Skip to content

Commit 159da97

Browse files
author
kalibera
committed
Fix for older curl (amends 87401).
git-svn-id: https://svn.r-project.org/R/trunk@87409 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 1130bc2 commit 159da97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/modules/internet/libcurl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,9 @@ static int download_add_url(int i, SEXP scmd, const char *mode,
776776
curl_easy_setopt(c->hnd[i], CURLOPT_PREREQFUNCTION, prereq_multi);
777777
curl_easy_setopt(c->hnd[i], CURLOPT_PREREQDATA, &c->tstart[i]);
778778
#elif LIBCURL_VERSION_NUM >= 0x070100
779-
curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, (long)current_timeout);
780-
curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 1L);
779+
curl_easy_setopt(c->hnd[i], CURLOPT_LOW_SPEED_TIME,
780+
(long)current_timeout);
781+
curl_easy_setopt(c->hnd[i], CURLOPT_LOW_SPEED_LIMIT, 1L);
781782
#endif
782783
}
783784

0 commit comments

Comments
 (0)