diff --git a/VERSION b/VERSION index f69752a..b66183a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.16 +1.2.17 diff --git a/src/.build-counter b/src/.build-counter index d0f0d29..16f482d 100644 --- a/src/.build-counter +++ b/src/.build-counter @@ -1 +1 @@ -2510 +2512 diff --git a/src/curl.c b/src/curl.c index 479c628..b9c3afe 100644 --- a/src/curl.c +++ b/src/curl.c @@ -835,8 +835,10 @@ static CURLcode mir_curl_add_put(struct curl_con *con, const struct mirror *mir) CURL_ERR_EASY("Failed to set read callback function", retval); else if ((retval = curl_easy_setopt(con->easy, CURLOPT_UPLOAD, 1L)) != CURLE_OK) CURL_ERR_EASY("Failed to enable uploading", retval); +#if !CURL_AT_LEAST_VERSION(7, 12, 1) else if ((retval = curl_easy_setopt(con->easy, CURLOPT_PUT, 1L)) != CURLE_OK) CURL_ERR_EASY("Failed to init HTTP PUT data", retval); +#endif else if ((retval = curl_easy_setopt(con->easy, CURLOPT_READDATA, con)) != CURLE_OK) CURL_ERR_EASY("Failed to set read callback function data", retval); else if ((retval = curl_easy_setopt(con->easy, CURLOPT_INFILESIZE_LARGE, (curl_off_t)mir->body_size)) != CURLE_OK)