Mon, 19 Aug 2013 14:45:53 +0200
fixed do_put_request
dav/methods.c | file | annotate | diff | comparison | revisions |
--- a/dav/methods.c Mon Aug 19 14:23:00 2013 +0200 +++ b/dav/methods.c Mon Aug 19 14:45:53 2013 +0200 @@ -447,6 +447,8 @@ struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Transfer-Encoding: chunked"); curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headers); + } else { + curl_easy_setopt(handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)length); } curl_easy_setopt(handle, CURLOPT_READFUNCTION, read_func);