dav/methods.c

changeset 24
a317202ae787
parent 23
2b0a7361f15c
child 27
e584c351b402
equal deleted inserted replaced
23:2b0a7361f15c 24:a317202ae787
444 read_func = (dav_read_func)ucx_buffer_read; 444 read_func = (dav_read_func)ucx_buffer_read;
445 curl_easy_setopt(handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)length); 445 curl_easy_setopt(handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)length);
446 } else if(length == 0) { 446 } else if(length == 0) {
447 struct curl_slist *headers = NULL; 447 struct curl_slist *headers = NULL;
448 headers = curl_slist_append(headers, "Transfer-Encoding: chunked"); 448 headers = curl_slist_append(headers, "Transfer-Encoding: chunked");
449 curl_easy_setopt(handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)1);
449 curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headers); 450 curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headers);
450 } else { 451 } else {
451 curl_easy_setopt(handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)length); 452 curl_easy_setopt(handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)length);
452 } 453 }
453 454

mercurial